anv: Turn device->queue into an array
Rework: Lionel Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8667>
This commit is contained in:
@@ -350,8 +350,20 @@ anv_queue_submit_deferred_locked(struct anv_queue *queue, uint32_t *advance)
|
||||
static VkResult
|
||||
anv_device_submit_deferred_locked(struct anv_device *device)
|
||||
{
|
||||
uint32_t advance = 0;
|
||||
return anv_queue_submit_deferred_locked(&device->queue, &advance);
|
||||
VkResult result = VK_SUCCESS;
|
||||
|
||||
uint32_t advance;
|
||||
do {
|
||||
advance = 0;
|
||||
for (uint32_t i = 0; i < device->queue_count; i++) {
|
||||
struct anv_queue *queue = &device->queues[i];
|
||||
VkResult qres = anv_queue_submit_deferred_locked(queue, &advance);
|
||||
if (qres != VK_SUCCESS)
|
||||
result = qres;
|
||||
}
|
||||
} while (advance);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user