From 1dde634b6aec3585f52c8a79ca16652f31c45ffb Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Fri, 4 Jul 2025 16:49:24 -0400 Subject: [PATCH] egl/x11: Always select Zink when requested Before we were selecting Zink based on dri2_dpy->kopper which also takes LIBGL_KOPPER_DISABLE into account which doesn't make any sense. This is just selecting the driver, not selecting Kopper. Reviewed-by: Adam Jackson Reviewed-By: Mike Blumenkrantz Part-of: --- src/egl/drivers/dri2/platform_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 9e1ee2efe98..2b8bf9e360e 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1333,7 +1333,7 @@ dri2_initialize_x11(_EGLDisplay *disp) * Every hardware driver_name is set using strdup. Doing the same in * here will allow is to simply free the memory at dri2_terminate(). */ - if (dri2_dpy->kopper) + if (disp->Options.Zink) dri2_dpy->driver_name = strdup("zink"); else if (disp->Options.ForceSoftware) dri2_dpy->driver_name = strdup("swrast");