From 66a6ef3859255f2a21c1e902a4b5f56562e87041 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 29 Jul 2025 17:55:56 +0200 Subject: core: disable esync for non-linux kernels ref #10437, BSD doesn't support timeline fds --- src/render/OpenGL.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render/OpenGL.cpp') diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 3526f622..49636965 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -347,10 +347,15 @@ CHyprOpenGLImpl::CHyprOpenGLImpl() : m_drmFD(g_pCompositor->m_drmFD) { Debug::log(LOG, "Supported EGL display extensions: ({}) {}", std::ranges::count(EGLEXTENSIONS_DISPLAY, ' '), EGLEXTENSIONS_DISPLAY); +#if defined(__linux__) m_exts.EGL_ANDROID_native_fence_sync_ext = EGLEXTENSIONS_DISPLAY.contains("EGL_ANDROID_native_fence_sync"); if (!m_exts.EGL_ANDROID_native_fence_sync_ext) Debug::log(WARN, "Your GPU does not support explicit sync via the EGL_ANDROID_native_fence_sync extension."); +#else + m_exts.EGL_ANDROID_native_fence_sync_ext = false; + Debug::log(WARN, "Forcefully disabling explicit sync: BSD is missing support for proper timeline export"); +#endif #ifdef USE_TRACY_GPU -- cgit v1.2.3