gallium: Disable dri2 interface on OSX

Error message:
Undefined symbols for architecture x86_64:
  "_dri_kms_driver_extensions", referenced from:
      _swkmsCreateNewScreen in libdri.a(dri_util.c.o)
  "_galliumdrm_driver_extensions", referenced from:
      _dri2CreateNewScreen in libdri.a(dri_util.c.o)
ld: symbol(s) not found for architecture x86_64

Fixes: b6f7a4836a ("dri: Fill in the driver extensions for the legacy createNewScreen paths")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6519

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784>
This commit is contained in:
Yonggang Luo
2022-07-28 16:12:49 +08:00
committed by Marge Bot
parent 48e72da0dd
commit 14bbfee3bc
2 changed files with 7 additions and 0 deletions

View File

@@ -1692,6 +1692,9 @@ endif
if with_dri
pre_args += '-DHAVE_DRI'
endif
if with_dri2
pre_args += '-DHAVE_DRI2'
endif
if with_gallium_drisw_kms
pre_args += '-DHAVE_DRISW_KMS'
endif