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:
committed by
Marge Bot
parent
eca51b7978
commit
cfae30147e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user