From 568807cf889060fe7c3bd5b9f11ced4d84966790 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 11 Mar 2024 13:28:11 -0400 Subject: [PATCH] egl/x11: disable dri3 with LIBGL_KOPPER_DRI2=1 as expected cc: mesa-stable Acked-by: Daniel Stone Part-of: --- src/egl/drivers/dri2/platform_x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index f1535bec1a8..3358feb95c9 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -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))