Module: Mesa
Branch: mesa_7_5_branch
Commit: 18a6f0f1a7fd509cebdc364d67b9476df1d33917
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=18a6f0f1a7fd509cebdc364d67b9476df1d33917

Author: José Fonseca <[email protected]>
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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to