mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
3256fab5a3
commit
c0c324fcb2
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue