anv: Store anv_queue_family type in cmd-pool
v2 (Jason Ekstrand): - Use an anv_queue_family pointer Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11564>
This commit is contained in:
@@ -1270,6 +1270,10 @@ VkResult anv_CreateCommandPool(
|
||||
if (pool == NULL)
|
||||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
assert(pCreateInfo->queueFamilyIndex < device->physical->queue.family_count);
|
||||
pool->queue_family =
|
||||
&device->physical->queue.families[pCreateInfo->queueFamilyIndex];
|
||||
|
||||
if (pAllocator)
|
||||
pool->alloc = *pAllocator;
|
||||
else
|
||||
|
Reference in New Issue
Block a user