summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_allocator.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-04-13 16:30:19 -0700
committerJason Ekstrand <[email protected]>2017-04-27 20:08:46 -0700
commit35e626bd0e59e7ce9fd97ccef66b2468c09206a4 (patch)
treef0ae99f348c71a1d9cbaedb946463b79079f1c80 /src/intel/vulkan/anv_allocator.c
parentbd3a9813b92bd2e116b58f0932bc7f1f722a9f63 (diff)
anv: Set EXEC_OBJECT_ASYNC when available
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_allocator.c')
-rw-r--r--src/intel/vulkan/anv_allocator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c
index 5f5577f2781..7e4db1aeb65 100644
--- a/src/intel/vulkan/anv_allocator.c
+++ b/src/intel/vulkan/anv_allocator.c
@@ -504,6 +504,9 @@ anv_block_pool_grow(struct anv_block_pool *pool, struct anv_block_state *state)
anv_bo_init(&pool->bo, gem_handle, size);
pool->bo.map = map;
+ if (pool->device->instance->physicalDevice.has_exec_async)
+ pool->bo.flags |= EXEC_OBJECT_ASYNC;
+
done:
pthread_mutex_unlock(&pool->device->mutex);