Commit bd3a9813 authored by Jason Ekstrand's avatar Jason Ekstrand

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: chadversary's avatarChad Versace <chadversary@chromium.org>
Cc: "17.0 17.1" <mesa-dev@lists.freedesktop.org>
parent 2bc06767
...@@ -1265,7 +1265,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device, ...@@ -1265,7 +1265,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
cmd_buffer->last_ss_pool_center); cmd_buffer->last_ss_pool_center);
VkResult result = VkResult result =
anv_execbuf_add_bo(&execbuf, &ss_pool->bo, &cmd_buffer->surface_relocs, anv_execbuf_add_bo(&execbuf, &ss_pool->bo, &cmd_buffer->surface_relocs,
&cmd_buffer->pool->alloc); &device->alloc);
if (result != VK_SUCCESS) if (result != VK_SUCCESS)
return result; return result;
...@@ -1278,7 +1278,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device, ...@@ -1278,7 +1278,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
cmd_buffer->last_ss_pool_center); cmd_buffer->last_ss_pool_center);
result = anv_execbuf_add_bo(&execbuf, &(*bbo)->bo, &(*bbo)->relocs, result = anv_execbuf_add_bo(&execbuf, &(*bbo)->bo, &(*bbo)->relocs,
&cmd_buffer->pool->alloc); &device->alloc);
if (result != VK_SUCCESS) if (result != VK_SUCCESS)
return result; return result;
} }
...@@ -1387,7 +1387,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device, ...@@ -1387,7 +1387,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
result = anv_device_execbuf(device, &execbuf.execbuf, execbuf.bos); 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; return result;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment