panvk: Drop panvk_cmd_buffer::queue_family_index

Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922>
This commit is contained in:
Jason Ekstrand
2022-09-12 05:17:42 -05:00
committed by Marge Bot
parent 452ab5554d
commit 2126bb6c92
2 changed files with 0 additions and 6 deletions

View File

@@ -233,9 +233,6 @@ struct panvk_pipeline_cache {
VkAllocationCallbacks alloc;
};
/* queue types */
#define PANVK_QUEUE_GENERAL 0
#define PANVK_MAX_QUEUE_FAMILIES 1
struct panvk_queue {
@@ -766,7 +763,6 @@ struct panvk_cmd_buffer {
enum panvk_cmd_buffer_status status;
struct panvk_cmd_state state;
uint32_t queue_family_index;
uint8_t push_constants[MAX_PUSH_CONSTANTS_SIZE];
VkShaderStageFlags push_constant_stages;

View File

@@ -1137,13 +1137,11 @@ panvk_create_cmdbuf(struct panvk_device *device,
if (pool) {
list_addtail(&cmdbuf->pool_link, &pool->active_cmd_buffers);
cmdbuf->queue_family_index = pool->vk.queue_family_index;
} else {
/* Init the pool_link so we can safely call list_del when we destroy
* the command buffer
*/
list_inithead(&cmdbuf->pool_link);
cmdbuf->queue_family_index = PANVK_QUEUE_GENERAL;
}
panvk_pool_init(&cmdbuf->desc_pool, &device->physical_device->pdev,