We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117a999 commit fdfca07Copy full SHA for fdfca07
src/vulkan/runtime/vk_android.c
@@ -800,6 +800,17 @@ vk_common_AcquireImageANDROID(VkDevice _device,
800
}
801
802
803
+ /* Workaround: If we don't wait on the CPU here fences can get stuck. Details
804
+ * are still TBD but from a historical similar issue this is likely due to
805
+ * rendering too far ahead and getting cycles with implicit sync.
806
+ */
807
+ if (nativeFenceFd >= 0) {
808
+ if (sync_wait(nativeFenceFd, -1) < 0) {
809
+ close(nativeFenceFd);
810
+ return VK_ERROR_DEVICE_LOST;
811
+ }
812
813
+
814
if (semaphore != VK_NULL_HANDLE) {
815
const VkImportSemaphoreFdInfoKHR info = {
816
.sType = VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHR,
0 commit comments