egl/x11: disable dri3 with LIBGL_KOPPER_DRI2=1 as expected

cc: mesa-stable

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29106>
This commit is contained in:
Mike Blumenkrantz 2024-03-11 13:28:11 -04:00 committed by Marge Bot
parent 28a0f98123
commit 568807cf88

View file

@ -1559,7 +1559,8 @@ dri2_initialize_x11_swrast(_EGLDisplay *disp)
dri2_dpy->driver_name = strdup(disp->Options.Zink ? "zink" : "swrast");
#ifdef HAVE_DRI3
if (disp->Options.Zink &&
!debug_get_bool_option("LIBGL_DRI3_DISABLE", false))
!debug_get_bool_option("LIBGL_DRI3_DISABLE", false) &&
!debug_get_bool_option("LIBGL_KOPPER_DRI2", false))
dri3_x11_connect(dri2_dpy);
#endif
if (!dri2_load_driver_swrast(disp))