[Mesa-dev] [PATCH 1/2] gallium/u_upload: make the first persistent mapping unsynchronized
Marek Olšák
maraeo at gmail.com
Sun Mar 12 16:14:18 UTC 2017
From: Marek Olšák <marek.olsak at 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
More information about the mesa-dev
mailing list