egl/x11: simplify a kopper check on init

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33891>
This commit is contained in:
Mike Blumenkrantz
2024-08-27 12:30:35 -04:00
committed by Marge Bot
parent eca51b7978
commit cfae30147e
+1 -2
View File
@@ -2018,8 +2018,7 @@ dri2_initialize_x11(_EGLDisplay *disp, bool *allow_dri2)
if (!dri2_get_xcb_connection(disp, dri2_dpy))
return EGL_FALSE;
if (disp->Options.ForceSoftware ||
(disp->Options.Zink && !debug_get_bool_option("LIBGL_KOPPER_DISABLE", false)))
if (disp->Options.ForceSoftware || dri2_dpy->kopper)
return dri2_initialize_x11_swrast(disp);
#ifdef HAVE_LIBDRM