egl: fix defines for zink's dri3 check
if mesa is built without dri3 then dri3 should/can not be checked cc: mesa-stable Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28570>
This commit is contained in:
committed by
Marge Bot
parent
e3a5ade9ee
commit
ff37271ea7
@@ -968,17 +968,15 @@ dri2_setup_extensions(_EGLDisplay *disp)
|
||||
(dri2_dpy->present_major_version == 1 &&
|
||||
dri2_dpy->present_minor_version >= 2)) &&
|
||||
(dri2_dpy->image && dri2_dpy->image->base.version >= 15);
|
||||
#endif
|
||||
if (disp->Options.Zink && !disp->Options.ForceSoftware &&
|
||||
#ifdef HAVE_DRI3_MODIFIERS
|
||||
dri2_dpy->dri3_major_version != -1 &&
|
||||
!dri2_dpy->multibuffers_available &&
|
||||
#endif
|
||||
/* this is enum _egl_platform_type */
|
||||
(disp->Platform == _EGL_PLATFORM_X11 ||
|
||||
disp->Platform == _EGL_PLATFORM_XCB) &&
|
||||
!debug_get_bool_option("LIBGL_KOPPER_DRI2", false))
|
||||
return EGL_FALSE;
|
||||
#endif
|
||||
|
||||
loader_bind_extensions(dri2_dpy, optional_core_extensions,
|
||||
ARRAY_SIZE(optional_core_extensions), extensions);
|
||||
|
||||
Reference in New Issue
Block a user