fix(quest): gamescope no longer aborts at start with vk.WaitSemaphores -13 (#1938)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-03 21:58:49 -05:00
commit ad0d39f457
5 files changed
+270 -16

No files matched your search

+7
View File
@@ -46,6 +46,13 @@ needs to wait on timeline semaphores; the adapter answers it from the last submi
and a zero-timeout `WAITTIMESTAMP`. Unhandled controller ioctls forward to the next
preload hook rather than skipping it with a raw syscall.
The Ubuntu runtime's Turnip polls timeline points with
`CMDSTREAM_READTIMESTAMP_CTXTID` and reports any failure as `VK_ERROR_UNKNOWN`,
which aborted gamescope with `vk.WaitSemaphores` result -13 on Quest. The Linux
preload (`tools/linuxfs/preload/kgslpoll.c`) answers a failed read from one
millisecond `WAITTIMESTAMP` calls over the context's submitted timestamps, and
logs refused KGSL ioctls to `session.log` as `[QuestKGSL] ioctl 0x.. refused`.
`tools/build_local.sh` and CI build the wrapper from source using the pinned
Android NDK; the normal preload builds include the shared Linux adapter.
Runtime input verification checks the resulting driver archive and invalidates