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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user