projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c2475
)
gallium: Set PIPE_BUFFER_USAGE_DISCARD flag in pipe_buffer_write.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 21 Jan 2010 17:19:25 +0000
(09:19 -0800)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 21 Jan 2010 23:18:40 +0000
(15:18 -0800)
src/gallium/include/pipe/p_inlines.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_inlines.h
b/src/gallium/include/pipe/p_inlines.h
index 6949f56574cf1e43f3be0721f2725ae730c91b32..11ed46c7e7260ccd6e228948cee49fb0a680a641 100644
(file)
--- a/
src/gallium/include/pipe/p_inlines.h
+++ b/
src/gallium/include/pipe/p_inlines.h
@@
-119,7
+119,8
@@
pipe_buffer_write(struct pipe_screen *screen,
map = pipe_buffer_map_range(screen, buf, offset, size,
PIPE_BUFFER_USAGE_CPU_WRITE |
- PIPE_BUFFER_USAGE_FLUSH_EXPLICIT);
+ PIPE_BUFFER_USAGE_FLUSH_EXPLICIT |
+ PIPE_BUFFER_USAGE_DISCARD);
assert(map);
if(map) {
memcpy((uint8_t *)map + offset, data, size);