Mesa (gallium-mesa-7.4): gallium: New PIPE_BUFFER_USAGE_DONTBLOCK flag.

Keith Whitwell keithw at kemper.freedesktop.org
Mon Mar 2 20:28:22 UTC 2009


Module: Mesa
Branch: gallium-mesa-7.4
Commit: cfc3d5c219e3ae3190b7700472bdefec028a7a15
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cfc3d5c219e3ae3190b7700472bdefec028a7a15

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Mar  2 17:18:21 2009 +0000

gallium: New PIPE_BUFFER_USAGE_DONTBLOCK flag.

To prevent blocking when mapping a buffer.

---

 src/gallium/include/pipe/p_defines.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index dc8a92d..284ebe0 100644
--- 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)
 




More information about the mesa-commit mailing list