summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-03-02 01:42:37 +0100
committerMarek Olšák <[email protected]>2017-03-17 18:30:21 +0100
commit6c0a28084d160b9831c2092af4e963ed2d276b88 (patch)
tree334ceb3f6ce72b5f7c3e550858ae230010da79ca /src/gallium/auxiliary/util
parenta27b62e794779229210092635e7afccc2fd074c7 (diff)
gallium/u_upload: make the first persistent mapping unsynchronized
This is simpler for drivers.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_upload_mgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c b/src/gallium/auxiliary/util/u_upload_mgr.c
index 7ef82082dac..32697b8eda3 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;
}