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>
(cherry picked from commit 149e8bff52)
This commit is contained in:
Jessica Clarke 2024-07-17 11:11:12 +01:00 committed by Eric Engestrom
parent 09dfdcd476
commit 7829531a6b
2 changed files with 2 additions and 2 deletions

View file

@ -274,7 +274,7 @@
"description": "meson: egl: Build egl_dri2 driver even for plain DRI",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -91,7 +91,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',