projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1d40a
)
gallium: New PIPE_BUFFER_USAGE_DONTBLOCK flag.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 2 Mar 2009 17:18:21 +0000
(17:18 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 2 Mar 2009 17:33:25 +0000
(17:33 +0000)
To prevent blocking when mapping a buffer.
src/gallium/include/pipe/p_defines.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_defines.h
b/src/gallium/include/pipe/p_defines.h
index dc8a92dccb0ffce9ef1f50f8b4cd90e5edb4c89e..284ebe084c1a9de8c7e7a4aa48a02f5af03d1c30 100644
(file)
--- a/
src/gallium/include/pipe/p_defines.h
+++ b/
src/gallium/include/pipe/p_defines.h
@@
-201,6
+201,8
@@
enum pipe_texture_target {
#define PIPE_BUFFER_USAGE_VERTEX (1 << 5)
#define PIPE_BUFFER_USAGE_INDEX (1 << 6)
#define PIPE_BUFFER_USAGE_CONSTANT (1 << 7)
+#define PIPE_BUFFER_USAGE_DISCARD (1 << 8)
+#define PIPE_BUFFER_USAGE_DONTBLOCK (1 << 9)
/** Pipe driver custom usage flags should be greater or equal to this value */
#define PIPE_BUFFER_USAGE_CUSTOM (1 << 16)