Commit 6017898c authored by Jason Ekstrand's avatar Jason Ekstrand Committed by Andres Gomez

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 <>
Cc: "17.0 17.1" <>
(cherry picked from commit bd3a9813)
[Andres Gomez: resolve trivial conflicts]
Signed-off-by: Andres Gomez's avatarAndres Gomez <>

parent 23833ed2
......@@ -1237,7 +1237,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
adjust_relocations_from_state_pool(ss_pool, &cmd_buffer->surface_relocs,
anv_execbuf_add_bo(&execbuf, &ss_pool->bo, &cmd_buffer->surface_relocs,
/* First, we walk over all of the bos we've seen and add them and their
* relocations to the validate list.
......@@ -1248,7 +1248,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
anv_execbuf_add_bo(&execbuf, &(*bbo)->bo, &(*bbo)->relocs,
/* Now that we've adjusted all of the surface state relocations, we need to
......@@ -1355,7 +1355,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
VkResult 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;
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