mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
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:
parent
e89eba0796
commit
568a4ca899
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue