[Mesa-dev] [PATCH] u_upload_mgr: use unsync flag on both buffer mappings for consistency

Dave Airlie airlied at gmail.com
Mon Apr 29 18:25:05 PDT 2013


From: Dave Airlie <airlied at redhat.com>

Not sure if this makes a difference or not, but either its inconsistent
for some undocumented reason or its just a bug.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/gallium/auxiliary/util/u_upload_mgr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c b/src/gallium/auxiliary/util/u_upload_mgr.c
index 6859751..de448e0 100644
--- a/src/gallium/auxiliary/util/u_upload_mgr.c
+++ b/src/gallium/auxiliary/util/u_upload_mgr.c
@@ -138,7 +138,8 @@ u_upload_alloc_buffer( struct u_upload_mgr *upload,
    upload->map = pipe_buffer_map_range(upload->pipe, upload->buffer,
                                        0, size,
                                        PIPE_TRANSFER_WRITE |
-                                       PIPE_TRANSFER_FLUSH_EXPLICIT,
+                                       PIPE_TRANSFER_FLUSH_EXPLICIT |
+                                       PIPE_TRANSFER_UNSYNCHRONIZED,
                                        &upload->transfer);
    if (upload->map == NULL) {
       upload->transfer = NULL;
-- 
1.8.1.2



More information about the mesa-dev mailing list