meson: egl: Build egl_dri2 driver even for plain DRI

Despite its name, egl_dri2 works under plain DRI without DRI2, and the
old autotools build system built it when $enable_dri = yes, with no
check for DRI2. This fixes the build for GNU/Hurd, which supports DRI,
but doesn't have DRM and thus no DRI2 support.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/587>
This commit is contained in:
Jessica Clarke 2024-07-17 11:11:12 +01:00 committed by Marge Bot
parent ec55a6c329
commit 149e8bff52

View file

@ -76,7 +76,7 @@ g_egldispatchstubs_h = custom_target(
capture : true,
)
if with_dri2
if with_dri
files_egl += files(
'drivers/dri2/egl_dri2.c',
'drivers/dri2/egl_dri2.h',