opengl: detect android fence support and disable explicit if it's missing (#11077)

Checks for explicit sync support via the android fences, and falls back to implicit sync if it isn't
This commit is contained in:
Vaxry 2025-07-19 12:38:41 +02:00 committed by GitHub
parent ae3cc48f22
commit d84699d8e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 47 additions and 15 deletions

View file

@ -210,7 +210,7 @@ CProtocolManager::CProtocolManager() {
else
lease.reset();
if (!PROTO::sync)
if (g_pHyprOpenGL->m_exts.EGL_ANDROID_native_fence_sync_ext && !PROTO::sync)
PROTO::sync = makeUnique<CDRMSyncobjProtocol>(&wp_linux_drm_syncobj_manager_v1_interface, 1, "DRMSyncobj");
}