projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aecba6b
)
intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it.
author
Eric Anholt
<eric@anholt.net>
Wed, 2 Sep 2009 18:33:08 +0000
(11:33 -0700)
committer
Eric 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
patch
|
blob
|
history
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
(file)
--- 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) {