Create sync device before calling goldfish_sync_queue_work
dEQP-VK.wsi.android.maintenance1.* becomes flaky (instead of hard
failure) after the fix.
Bug: 300276632
Test: reduce logspam in dEQP-VK.wsi.android.maintenance1.*
Change-Id: Iadf23de0ee743206bc5cdf273a56f26f8963c055
diff --git a/guest/vulkan_enc/ResourceTracker.cpp b/guest/vulkan_enc/ResourceTracker.cpp
index 228c70b..892e649 100644
--- a/guest/vulkan_enc/ResourceTracker.cpp
+++ b/guest/vulkan_enc/ResourceTracker.cpp
@@ -6686,6 +6686,7 @@
*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);