summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-08-11 15:11:37 +0200
committerMarek Olšák <maraeo@gmail.com>2010-08-11 15:11:42 +0200
commit4b20ad7559271a7785193094a3f110ef78e65253 (patch)
tree8ff509cbdad6293fc3681f2b981c8d82e0d9d075 /src
parentb85c71d4e1e4ed788be834dff5b7b3c0cd0402ac (diff)
util: copy the u_staging commit message to the code
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_staging.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_staging.h b/src/gallium/auxiliary/util/u_staging.h
index f5976dadb1..602faa2971 100644
--- a/src/gallium/auxiliary/util/u_staging.h
+++ b/src/gallium/auxiliary/util/u_staging.h
@@ -1,4 +1,12 @@
-/* Implement transfers using staging resources like in DirectX 10/11 */
+/* Direct3D 10/11 has no concept of transfers. Applications instead
+ * create resources with a STAGING or DYNAMIC usage, copy between them
+ * and the real resource and use Map to map the STAGING/DYNAMIC resource.
+ *
+ * This util module allows to implement Gallium drivers as a Direct3D
+ * driver would be implemented: transfers allocate a resource with
+ * PIPE_USAGE_STAGING, and copy the data between it and the real resource
+ * with resource_copy_region.
+ */
#ifndef U_STAGING_H
#define U_STAGING_H