meson: add build-radv-tests option

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33875>
This commit is contained in:
Samuel Pitoiset 2025-03-11 16:38:22 +01:00 committed by Marge Bot
parent 4a4e0c833c
commit 5fe5fb147e
3 changed files with 12 additions and 1 deletions

View file

@ -80,6 +80,7 @@ with_moltenvk_dir = get_option('moltenvk-dir')
with_vulkan_icd_dir = get_option('vulkan-icd-dir')
with_tests = get_option('build-tests')
with_glcpp_tests = get_option('enable-glcpp-tests')
with_radv_tests = get_option('build-radv-tests')
with_aco_tests = get_option('build-aco-tests')
with_glx_read_only_text = get_option('glx-read-only-text')
with_glx_direct = get_option('glx-direct')
@ -351,6 +352,9 @@ endif
if with_aco_tests and not with_amd_vk
error('ACO tests require Radv')
endif
if with_radv_tests and not with_amd_vk
error('RADV tests require RADV')
endif
with_microsoft_clc = get_option('microsoft-clc').enabled()
with_spirv_to_dxil = get_option('spirv-to-dxil')

View file

@ -464,6 +464,13 @@ option(
description : 'Build glcpp unit tests. These are flaky on CI.'
)
option(
'build-radv-tests',
type : 'boolean',
value : false,
description : 'Build RADV tests. These do not require an AMD GPU.'
)
option(
'build-aco-tests',
type : 'boolean',

View file

@ -313,7 +313,7 @@ devenv.append('VK_DRIVER_FILES', _dev_icd.full_path())
# Deprecated: replaced by VK_DRIVER_FILES above
devenv.append('VK_ICD_FILENAMES', _dev_icd.full_path())
if with_tests
if with_radv_tests
test(
'radv_tests',
executable(