anv: fix debug printfs on hang

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 0932d0c7e0 ("anv/xe: rework set_lost handling in xe_exec_ioctl()")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41047>
This commit is contained in:
Lionel Landwerlin 2026-04-03 17:33:26 +03:00
parent 3256fab5a3
commit c0c324fcb2

View file

@ -145,8 +145,11 @@ xe_exec_ioctl_impl(struct anv_queue *queue, struct drm_xe_exec *exec,
struct anv_device *device = queue->device;
int ret = xe_gem_exec_ioctl(device->fd, device->info, exec);
if (ret)
if (ret) {
if (INTEL_DEBUG(DEBUG_SHADER_PRINT))
vk_check_printf_status(&device->vk, &device->printf);
return vk_queue_set_lost(&queue->vk, "%s(%d) failed: %m", func, line);
}
return VK_SUCCESS;
}