summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_defines.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-10 12:13:48 -0600
committerBrian <[email protected]>2007-08-10 12:14:25 -0600
commit9ac1a8d416c2bd50ca10186ca09f5e86f6fa4ce6 (patch)
tree39ac2f23794da71ec1aaf4e1629bdd889baf1b91 /src/mesa/pipe/p_defines.h
parent519aacef031e3271e16693308ca462346a8a160c (diff)
pipe->region_alloc() now takes width instead of pitch, plus a flags param
Diffstat (limited to 'src/mesa/pipe/p_defines.h')
-rw-r--r--src/mesa/pipe/p_defines.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h
index efbb3239a2e..52ecd5b1190 100644
--- a/src/mesa/pipe/p_defines.h
+++ b/src/mesa/pipe/p_defines.h
@@ -176,11 +176,22 @@
/**
- * Buffer mapping access modes
+ * Surface flags
*/
-#define PIPE_MAP_READ 1
-#define PIPE_MAP_WRITE 2
-#define PIPE_MAP_READ_WRITE 3
+#define PIPE_SURFACE_FLAG_TEXTURE 0x1
+#define PIPE_SURFACE_FLAG_RENDER 0x2
+
+
+/**
+ * Buffer flags
+ */
+#define PIPE_BUFFER_FLAG_READ 0x1
+#define PIPE_BUFFER_FLAG_WRITE 0x2
+
+#define PIPE_BUFFER_USE_TEXTURE 0x1
+#define PIPE_BUFFER_USE_VERTEX_BUFFER 0x2
+#define PIPE_BUFFER_USE_INDEX_BUFFER 0x4
+#define PIPE_BUFFER_USE_RENDER_TARGET 0x8
/**