summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-02-26 23:41:33 -0800
committerKenneth Graunke <[email protected]>2018-03-02 14:19:33 -0800
commitb04cf529f2e7bab6be22410d4be293aa5e650b03 (patch)
tree657787221aa66292086273b914bc295f91af7f9c /src/mesa/drivers/dri
parenteb99bf8abe367aaf01ccf50347b510d8cfb87688 (diff)
i965: Mark upload buffers with MAP_ASYNC and MAP_PERSISTENT.
This should have no practical impact. For the default uploader, we don't really care, but for others, we may want to append more data as the GPU is reading existing data, which means we need async and persistent flags. Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/intel_upload.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_upload.c b/src/mesa/drivers/dri/i965/intel_upload.c
index 53dff556873..e4297bf22b4 100644
--- a/src/mesa/drivers/dri/i965/intel_upload.c
+++ b/src/mesa/drivers/dri/i965/intel_upload.c
@@ -87,7 +87,9 @@ brw_upload_space(struct brw_uploader *upload,
if (!upload->bo) {
upload->bo = brw_bo_alloc(upload->bufmgr, "streamed data",
MAX2(upload->default_size, size), 4096);
- upload->map = brw_bo_map(NULL, upload->bo, MAP_READ | MAP_WRITE);
+ upload->map = brw_bo_map(NULL, upload->bo,
+ MAP_READ | MAP_WRITE |
+ MAP_PERSISTENT | MAP_ASYNC);
}
upload->next_offset = offset + size;