diff --git a/disable-zink-egl-fallback.patch b/disable-zink-egl-fallback.patch new file mode 100644 index 0000000..c036ace --- /dev/null +++ b/disable-zink-egl-fallback.patch @@ -0,0 +1,26 @@ +diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c +index d50be23e871..e3697622635 100644 +--- a/src/egl/main/eglapi.c ++++ b/src/egl/main/eglapi.c +@@ -695,17 +695,21 @@ eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) + if (disp->Options.ForceSoftware) + RETURN_EGL_ERROR(disp, EGL_NOT_INITIALIZED, EGL_FALSE); + else { ++#if 0 + bool success = false; + if (!disp->Options.Zink && !getenv("GALLIUM_DRIVER")) { + disp->Options.Zink = EGL_TRUE; + success = _eglDriver.Initialize(disp); + } + if (!success) { ++#endif + disp->Options.Zink = EGL_FALSE; + disp->Options.ForceSoftware = EGL_TRUE; + if (!_eglDriver.Initialize(disp)) + RETURN_EGL_ERROR(disp, EGL_NOT_INITIALIZED, EGL_FALSE); ++#if 0 + } ++#endif + } + } + diff --git a/mesa.spec b/mesa.spec index f50fd34..3cedbdc 100644 --- a/mesa.spec +++ b/mesa.spec @@ -76,6 +76,7 @@ Source1: Mesa-MLAA-License-Clarification-Email.txt Patch10: gnome-shell-glthread-disable.patch Patch11: 0001-intel-compiler-reemit-boolean-resolve-for-inverted-i.patch Patch12: 0001-intel-compiler-fix-release-build-unused-variable.patch +Patch13: disable-zink-egl-fallback.patch BuildRequires: meson >= 1.2.0 BuildRequires: gcc