Mesa (master): gallium/u_upload: make the first persistent mapping unsynchronized

Marek Olšák mareko at kemper.freedesktop.org
Fri Mar 17 17:31:42 UTC 2017


Module: Mesa
Branch: master
Commit: 6c0a28084d160b9831c2092af4e963ed2d276b88
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c0a28084d160b9831c2092af4e963ed2d276b88

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Mar  2 01:42:37 2017 +0100

gallium/u_upload: make the first persistent mapping unsynchronized

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 7ef82082da..32697b8eda 100644
--- a/src/gallium/auxiliary/util/u_upload_mgr.c
+++ b/src/gallium/auxiliary/util/u_upload_mgr.c
@@ -74,6 +74,7 @@ u_upload_create(struct pipe_context *pipe, unsigned default_size,
 
    if (upload->map_persistent) {
       upload->map_flags = PIPE_TRANSFER_WRITE |
+                          PIPE_TRANSFER_UNSYNCHRONIZED |
                           PIPE_TRANSFER_PERSISTENT |
                           PIPE_TRANSFER_COHERENT;
    }




More information about the mesa-commit mailing list