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)
|
if (pool == NULL)
|
||||||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
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)
|
if (pAllocator)
|
||||||
pool->alloc = *pAllocator;
|
pool->alloc = *pAllocator;
|
||||||
else
|
else
|
||||||
|
@@ -3091,6 +3091,7 @@ struct anv_cmd_pool {
|
|||||||
struct list_head cmd_buffers;
|
struct list_head cmd_buffers;
|
||||||
|
|
||||||
VkCommandPoolCreateFlags flags;
|
VkCommandPoolCreateFlags flags;
|
||||||
|
struct anv_queue_family * queue_family;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define ANV_MIN_CMD_BUFFER_BATCH_SIZE 8192
|
#define ANV_MIN_CMD_BUFFER_BATCH_SIZE 8192
|
||||||
|
Reference in New Issue
Block a user