From: Marek Olšák <marek.ol...@amd.com>

This is simpler for drivers.
---
 src/gallium/auxiliary/util/u_upload_mgr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c 
b/src/gallium/auxiliary/util/u_upload_mgr.c
index 7ef8208..32697b8 100644
--- a/src/gallium/auxiliary/util/u_upload_mgr.c
+++ b/src/gallium/auxiliary/util/u_upload_mgr.c
@@ -67,20 +67,21 @@ u_upload_create(struct pipe_context *pipe, unsigned 
default_size,
    upload->default_size = default_size;
    upload->bind = bind;
    upload->usage = usage;
 
    upload->map_persistent =
       pipe->screen->get_param(pipe->screen,
                               PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT);
 
    if (upload->map_persistent) {
       upload->map_flags = PIPE_TRANSFER_WRITE |
+                          PIPE_TRANSFER_UNSYNCHRONIZED |
                           PIPE_TRANSFER_PERSISTENT |
                           PIPE_TRANSFER_COHERENT;
    }
    else {
       upload->map_flags = PIPE_TRANSFER_WRITE |
                           PIPE_TRANSFER_UNSYNCHRONIZED |
                           PIPE_TRANSFER_FLUSH_EXPLICIT;
    }
 
    return upload;
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to