gallium/u_upload: make the first persistent mapping unsynchronized
authorMarek Olšák <marek.olsak@amd.com>
Thu, 2 Mar 2017 00:42:37 +0000 (01:42 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 17 Mar 2017 17:30:21 +0000 (18:30 +0100)
This is simpler for drivers.

src/gallium/auxiliary/util/u_upload_mgr.c

index 7ef82082dace74338d5af5c93111714d0624d758..32697b8eda3e935c60a1c69032cbdbfe123ccc24 100644 (file)
@@ -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;
    }