Create sync device before calling goldfish_sync_queue_work

dEQP-VK.wsi.android.maintenance1.* becomes flaky (instead of hard
failure) after the fix.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
Yahan Zhou 2023-10-04 15:48:27 -07:00 committed by Marge Bot
parent 1019e5d4d8
commit ba5cb9b65c

View file

@ -6754,6 +6754,7 @@ VkResult ResourceTracker::exportSyncFdForQSRILocked(VkImage image, int* fd) {
*fd = exec.handle.osHandle;
} else {
ensureSyncDeviceFd();
goldfish_sync_queue_work(
mSyncDeviceFd, get_host_u64_VkImage(image) /* the handle */,
GOLDFISH_SYNC_VULKAN_QSRI /* thread handle (doubling as type field) */, fd);