spirv: add some tests for volatile/available/visible

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6090>
This commit is contained in:
Rhys Perry
2020-07-27 14:43:40 +01:00
committed by Marge Bot
parent fb6b243c11
commit 1459cce7ec
4 changed files with 1109 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ subdir('spirv')
subdir('nir')
# This is here because putting it in spirv/meson.build would create a circular
# These are here because putting it in spirv/meson.build would create a circular
# dependency with nir/meson.build.
spirv2nir = executable(
'spirv2nir',
@@ -69,4 +69,32 @@ spirv2nir = executable(
install : with_tools.contains('nir'),
)
if with_tests
test(
'avail_vis',
executable(
'avail_vis',
files('spirv/tests/avail_vis.cpp'),
c_args : [c_msvc_compat_args, no_override_init_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'spirv'],
)
test(
'volatile',
executable(
'volatile',
files('spirv/tests/volatile.cpp'),
c_args : [c_msvc_compat_args, no_override_init_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'spirv'],
)
endif
subdir('glsl')