mesa: Translate MAP_UNSYNCHRONIZED_BIT.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Nov 2009 12:04:49 +0000 (12:04 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Nov 2009 12:06:44 +0000 (12:06 +0000)
src/mesa/state_tracker/st_cb_bufferobjects.c

index 8e09d0b9324152ebb196665c949e314d10d48adc..63196afba9c9eecdd26a825e855f6a6b33eee83a 100644 (file)
@@ -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 ...
     */