intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it.
authorEric Anholt <eric@anholt.net>
Wed, 2 Sep 2009 18:33:08 +0000 (11:33 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 2 Sep 2009 19:20:00 +0000 (12:20 -0700)
It's probably uncommon, but would obviously have gone wrong.

src/mesa/drivers/dri/intel/intel_buffer_objects.c

index b7e50b0027b49bdc81ab5bc0d447fd39a95df9f7..b8a0363b747b4a184b1efc516069c369ca443a2d 100644 (file)
@@ -318,7 +318,7 @@ intel_bufferobj_map_range(GLcontext * ctx,
     * the batchbuffer so that GEM knows about the buffer access for later
     * syncing.
     */
-   if ((access & GL_MAP_WRITE_BIT) && !(access & GL_MAP_UNSYNCHRONIZED_BIT))
+   if (!(access & GL_MAP_UNSYNCHRONIZED_BIT))
       intelFlush(ctx);
 
    if (intel_obj->buffer == NULL) {