glx: ignore zink check for has_explicit_modifiers and DRI3 on MacOS.

MacOS has neither of these so always fails to start up zink.

Reviewed-By: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32568>
This commit is contained in:
duncan.hopkins 2024-11-26 10:19:44 +00:00 committed by Marge Bot
parent e89eba0796
commit 568a4ca899

View file

@ -1039,6 +1039,7 @@ __glXInitialize(Display * dpy)
if (glx_direct)
glx_driver |= GLX_DRIVER_SW;
#if !defined(GLX_USE_APPLE)
if (!dpyPriv->has_explicit_modifiers && glx_accel && !debug_get_bool_option("LIBGL_KOPPER_DRI2", false)) {
if (glx_driver & GLX_DRIVER_ZINK_YES) {
/* only print error if zink was explicitly requested */
@ -1049,6 +1050,7 @@ __glXInitialize(Display * dpy)
/* if no dri3 and not using dri2, disable zink */
glx_driver &= ~GLX_DRIVER_ZINK_INFER;
}
#endif
#ifdef GLX_USE_WINDOWSGL
if (glx_direct && glx_accel)