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:

committed by
Marge Bot

parent
452ab5554d
commit
2126bb6c92
@@ -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;
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user