summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-02-27 17:31:05 -0800
committerJason Ekstrand <[email protected]>2017-04-27 20:08:46 -0700
commitbd3a9813b92bd2e116b58f0932bc7f1f722a9f63 (patch)
tree85f85093288f658c1974aa90e43bc59319780cb5 /src
parent2bc06767e11011eb83367868478b4775a8b52003 (diff)
anv/cmd_buffer: Use the device allocator for QueueSubmit
The command is really operating on a Queue not a command buffer and the nearest object to that with an allocator is VkDevice. Reviewed-by: Chad Versace <[email protected]> Cc: "17.0 17.1" <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/vulkan/anv_batch_chain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c
index 5f0528fc8f5..3e9fa4cad54 100644
--- a/src/intel/vulkan/anv_batch_chain.c
+++ b/src/intel/vulkan/anv_batch_chain.c
@@ -1265,7 +1265,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
cmd_buffer->last_ss_pool_center);
VkResult result =
anv_execbuf_add_bo(&execbuf, &ss_pool->bo, &cmd_buffer->surface_relocs,
- &cmd_buffer->pool->alloc);
+ &device->alloc);
if (result != VK_SUCCESS)
return result;
@@ -1278,7 +1278,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
cmd_buffer->last_ss_pool_center);
result = anv_execbuf_add_bo(&execbuf, &(*bbo)->bo, &(*bbo)->relocs,
- &cmd_buffer->pool->alloc);
+ &device->alloc);
if (result != VK_SUCCESS)
return result;
}
@@ -1387,7 +1387,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
result = anv_device_execbuf(device, &execbuf.execbuf, execbuf.bos);
- anv_execbuf_finish(&execbuf, &cmd_buffer->pool->alloc);
+ anv_execbuf_finish(&execbuf, &device->alloc);
return result;
}