summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-11-06 12:04:49 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-11-06 12:06:44 +0000
commitf611425101eab5c4b41407c38966f4deca542f56 (patch)
treee2a5c22ffa339886df31184b3e13c49be1938f71
parent244591ae7b2582a1d1f5d2fdc2d3812643104eb9 (diff)
mesa: Translate MAP_UNSYNCHRONIZED_BIT.
-rw-r--r--src/mesa/state_tracker/st_cb_bufferobjects.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 8e09d0b932..63196afba9 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -239,6 +239,9 @@ st_bufferobj_map_range(GLcontext *ctx, GLenum target,
if (access & GL_MAP_FLUSH_EXPLICIT_BIT)
flags |= PIPE_BUFFER_USAGE_FLUSH_EXPLICIT;
+ if (access & GL_MAP_UNSYNCHRONIZED_BIT)
+ flags |= PIPE_BUFFER_USAGE_UNSYNCHRONIZED;
+
/* ... other flags ...
*/