vulkan/drm_syncobj: Implement WAIT_PENDING with a sync_file lookup
authorJason Ekstrand <jason.ekstrand@collabora.com>
Thu, 31 Mar 2022 20:29:30 +0000 (15:29 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Apr 2022 17:22:14 +0000 (17:22 +0000)
commitb284c512e6dd28858bf0f7e9444ec105c253e048
treefc80c8723c911e0a1be85155b7d1ebfc8dbba1a8
parent7478b00c7cc7f7ec8cbe224ce600362f7fdb9411
vulkan/drm_syncobj: Implement WAIT_PENDING with a sync_file lookup

The v3dv kernel driver doesn't support timelines yet but we want
threaded submit and that requires WAIT_PENDING.  Fortunately, it should
never sit in this loop for long in practice.  The primary use-case is
sorting out dependencies and these checks will always trivially succeed
for non-shared semaphores because v3dv only has a single queue.

Acked-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15704>
src/vulkan/runtime/vk_drm_syncobj.c