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 <ajax@redhat.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36014>
This commit is contained in:
Faith Ekstrand 2025-07-04 16:49:24 -04:00 committed by Marge Bot
parent 6366a8992f
commit 1dde634b6a

View file

@ -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");