Revert "meson: fix with_dri2 definition for GNU Hurd"

This reverts commit ad862c36e5.

This change does not work, because libdrm is required if with_dri2 is
true. Moreover, we don't want all of DRI2 on Hurd, we just want the
egl_dri2 driver, as done by autotools. So first revert this to stop
trying to build all of DRI2.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/587>
(cherry picked from commit ec55a6c329)
This commit is contained in:
Jessica Clarke 2024-07-17 11:11:08 +01:00 committed by Eric Engestrom
parent 7444de6b13
commit 09dfdcd476
2 changed files with 2 additions and 3 deletions

View file

@ -284,7 +284,7 @@
"description": "Revert \"meson: fix with_dri2 definition for GNU Hurd\"",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -562,8 +562,7 @@ if with_vulkan_icd_dir == ''
with_vulkan_icd_dir = join_paths(get_option('datadir'), 'vulkan/icd.d')
endif
with_dri2 = (with_dri or with_any_vk) and (with_dri_platform == 'drm' or with_dri_platform == 'apple' or
host_machine.system() == 'gnu')
with_dri2 = (with_dri or with_any_vk) and (with_dri_platform == 'drm' or with_dri_platform == 'apple')
with_dri3 = get_option('dri3').disable_auto_if(not (system_has_kms_drm and with_dri2)).allowed()
if with_any_vk and (with_platform_x11 and not with_dri3)