projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11f9193
)
gallium: Add PIPE_BUFFER_USAGE_DISCARD.
author
Younes Manton
<younes.m@gmail.com>
Wed, 14 Jan 2009 05:21:24 +0000
(
00:21
-0500)
committer
Younes Manton
<younes.m@gmail.com>
Mon, 19 Jan 2009 02:40:10 +0000
(21:40 -0500)
When passed to map() signals that the buffer's previous contents are
not required, allowing the driver to allocate a new buffer if the
current buffer can not be mapped immediately.
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 5c6a92b53bc5bb39d6454b496b9e17770c3b5eb1..4f0b301f3173fa64b8d5fcb14b1264aee656d267 100644
(file)
--- a/
src/gallium/include/pipe/p_defines.h
+++ b/
src/gallium/include/pipe/p_defines.h
@@
-204,6
+204,7
@@
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)
/** Pipe driver custom usage flags should be greater or equal to this value */
#define PIPE_BUFFER_USAGE_CUSTOM (1 << 16)