anv/batch: Check if batch already has an error in anv_queue_submit_simple_batch()

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25672>
This commit is contained in:
Jordan Justen
2023-10-11 12:54:27 -07:00
committed by Marge Bot
parent 534511935d
commit ef8dcb0aa4

View File

@@ -1602,6 +1602,9 @@ anv_queue_submit_simple_batch(struct anv_queue *queue,
struct anv_device *device = queue->device;
VkResult result = VK_SUCCESS;
if (anv_batch_has_error(batch))
return batch->status;
if (queue->device->info->no_hw)
return VK_SUCCESS;