anv: fix INTEL_DEBUG=sync

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 3684012770 ("anv: implement DEBUG_SYNC")
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16101>
This commit is contained in:
Lionel Landwerlin 2022-04-22 16:59:17 +03:00 committed by Marge Bot
parent 6fc94500c0
commit 5a52cfd88b
1 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,10 @@ anv_queue_init(struct anv_device *device, struct anv_queue *queue,
result = vk_sync_create(&device->vk,
&device->physical->sync_syncobj_type,
0, 0, &queue->sync);
vk_queue_finish(&queue->vk);
return result;
if (result != VK_SUCCESS) {
vk_queue_finish(&queue->vk);
return result;
}
}
queue->vk.driver_submit = anv_queue_submit;