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> (cherry picked from commitc0c324fcb2) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
This commit is contained in:
parent
89fe35475b
commit
0ab24a2f24
2 changed files with 5 additions and 2 deletions
|
|
@ -3974,7 +3974,7 @@
|
|||
"description": "anv: fix debug printfs on hang",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "0932d0c7e0158544261dd88de30b939aa2ddd207",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -142,8 +142,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