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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user