mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
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:
parent
4a4e0c833c
commit
5fe5fb147e
3 changed files with 12 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ with_moltenvk_dir = get_option('moltenvk-dir')
|
||||||
with_vulkan_icd_dir = get_option('vulkan-icd-dir')
|
with_vulkan_icd_dir = get_option('vulkan-icd-dir')
|
||||||
with_tests = get_option('build-tests')
|
with_tests = get_option('build-tests')
|
||||||
with_glcpp_tests = get_option('enable-glcpp-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_aco_tests = get_option('build-aco-tests')
|
||||||
with_glx_read_only_text = get_option('glx-read-only-text')
|
with_glx_read_only_text = get_option('glx-read-only-text')
|
||||||
with_glx_direct = get_option('glx-direct')
|
with_glx_direct = get_option('glx-direct')
|
||||||
|
|
@ -351,6 +352,9 @@ endif
|
||||||
if with_aco_tests and not with_amd_vk
|
if with_aco_tests and not with_amd_vk
|
||||||
error('ACO tests require Radv')
|
error('ACO tests require Radv')
|
||||||
endif
|
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_microsoft_clc = get_option('microsoft-clc').enabled()
|
||||||
with_spirv_to_dxil = get_option('spirv-to-dxil')
|
with_spirv_to_dxil = get_option('spirv-to-dxil')
|
||||||
|
|
|
||||||
|
|
@ -464,6 +464,13 @@ option(
|
||||||
description : 'Build glcpp unit tests. These are flaky on CI.'
|
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(
|
option(
|
||||||
'build-aco-tests',
|
'build-aco-tests',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
|
|
|
||||||
|
|
@ -313,7 +313,7 @@ devenv.append('VK_DRIVER_FILES', _dev_icd.full_path())
|
||||||
# Deprecated: replaced by VK_DRIVER_FILES above
|
# Deprecated: replaced by VK_DRIVER_FILES above
|
||||||
devenv.append('VK_ICD_FILENAMES', _dev_icd.full_path())
|
devenv.append('VK_ICD_FILENAMES', _dev_icd.full_path())
|
||||||
|
|
||||||
if with_tests
|
if with_radv_tests
|
||||||
test(
|
test(
|
||||||
'radv_tests',
|
'radv_tests',
|
||||||
executable(
|
executable(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue