summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-01-21 09:19:25 -0800
committerJosé Fonseca <[email protected]>2010-01-21 15:18:40 -0800
commit707b28136f7b7dea49bce23b0fcd0a757646ff7a (patch)
tree6cf3977ab64674a5f85293e702317e85af5b0667 /src/gallium/include
parent13c2475339d502644464041fcaac3890770d3abd (diff)
gallium: Set PIPE_BUFFER_USAGE_DISCARD flag in pipe_buffer_write.
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_inlines.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_inlines.h b/src/gallium/include/pipe/p_inlines.h
index 6949f56574c..11ed46c7e72 100644
--- 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);