gallium/dri: reuse existing meson variables

This avoid having to duplicate the logic there in the next commit.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26367>
This commit is contained in:
Eric Engestrom 2023-12-07 18:09:12 +00:00 committed by Marge Bot
parent fe36cf6cad
commit a6392c06c0
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ endif
libdri_c_args = []
if with_gallium_zink and not with_platform_android
if get_option('glvnd')
libdri_c_args += '-DKOPPER_LIB_NAMES="libEGL_@0@ and libGLX_@0@"'.format(get_option('glvnd-vendor-name'))
if with_glvnd
libdri_c_args += '-DKOPPER_LIB_NAMES="libEGL_@0@ and libGLX_@0@"'.format(glvnd_vendor_name)
else
libdri_c_args += '-DKOPPER_LIB_NAMES="libEGL and libGLX"'
endif