projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ffe284
)
util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling buffer_flush_mapped_range.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 30 Jun 2009 14:07:54 +0000
(15:07 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 30 Jun 2009 14:33:53 +0000
(15:33 +0100)
src/gallium/auxiliary/util/u_upload_mgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_upload_mgr.c
b/src/gallium/auxiliary/util/u_upload_mgr.c
index 2eb98068c86ac799689131eb2f06675fca1237a9..c90425f3e54f5acc0428cd87d1ef6ba6fbcf32ad 100644
(file)
--- a/
src/gallium/auxiliary/util/u_upload_mgr.c
+++ b/
src/gallium/auxiliary/util/u_upload_mgr.c
@@
-83,7
+83,9
@@
my_buffer_write(struct pipe_screen *screen,
assert(dirty_size >= size);
assert(size);
- map = pipe_buffer_map_range(screen, buf, offset, size, PIPE_BUFFER_USAGE_CPU_WRITE);
+ map = pipe_buffer_map_range(screen, buf, offset, size,
+ PIPE_BUFFER_USAGE_CPU_WRITE |
+ PIPE_BUFFER_USAGE_FLUSH_EXPLICIT);
if (map == NULL)
return PIPE_ERROR_OUT_OF_MEMORY;