Mesa (dlist-statechange-shortcircuit): util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling buffer_flush_mapped_range .
Keith Whitwell
keithw at kemper.freedesktop.org
Tue Jun 30 16:06:02 UTC 2009
Module: Mesa
Branch: dlist-statechange-shortcircuit
Commit: 18a6f0f1a7fd509cebdc364d67b9476df1d33917
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=18a6f0f1a7fd509cebdc364d67b9476df1d33917
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Jun 30 15:07:54 2009 +0100
util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling buffer_flush_mapped_range.
---
src/gallium/auxiliary/util/u_upload_mgr.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c b/src/gallium/auxiliary/util/u_upload_mgr.c
index 2eb9806..c90425f 100644
--- 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;
More information about the mesa-commit
mailing list