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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user