anv: Drop anv_queue::flags

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13003>
This commit is contained in:
Jason Ekstrand
2021-09-23 11:34:15 -05:00
committed by Marge Bot
parent b2313b6884
commit 317c5ebf3e
3 changed files with 3 additions and 5 deletions

View File

@@ -3413,7 +3413,7 @@ void anv_GetDeviceQueue2(
}
assert(queue != NULL);
if (queue && queue->flags == pQueueInfo->flags)
if (queue && queue->vk.flags == pQueueInfo->flags)
*pQueue = anv_queue_to_handle(queue);
else
*pQueue = NULL;

View File

@@ -1081,7 +1081,6 @@ struct anv_queue {
struct anv_device * device;
VkDeviceQueueCreateFlags flags;
const struct anv_queue_family * family;
uint32_t exec_flags;

View File

@@ -485,10 +485,9 @@ anv_queue_init(struct anv_device *device, struct anv_queue *queue,
return result;
queue->device = device;
queue->flags = pCreateInfo->flags;
assert(pCreateInfo->queueFamilyIndex < pdevice->queue.family_count);
queue->family = &pdevice->queue.families[pCreateInfo->queueFamilyIndex];
assert(queue->vk.queue_family_index < pdevice->queue.family_count);
queue->family = &pdevice->queue.families[queue->vk.queue_family_index];
queue->exec_flags = exec_flags;
queue->lost = false;