From 82313eed01b191320721dab63d353a1634f89231 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 2 Sep 2009 11:33:08 -0700 Subject: [PATCH] intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it. It's probably uncommon, but would obviously have gone wrong. --- src/mesa/drivers/dri/intel/intel_buffer_objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c index b7e50b0..b8a0363 100644 --- a/src/mesa/drivers/dri/intel/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.c @@ -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) { -- 2.7.4