nir: Add test file for vars related passes
Add basic helpers for doing tests on the vars related optimization passes. The main goal is to lower the barrier to create tests during development and debugging of the passes. Full coverage is not a requirement. v2: Make find_next_intrinsic() skip blocks before 'after'. (Jason) Move nir_imm_ivec2() to nir_builder.h. (Jason) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -245,4 +245,15 @@ if with_tests
|
||||
link_with : libmesa_util,
|
||||
)
|
||||
)
|
||||
test(
|
||||
'nir_vars',
|
||||
executable(
|
||||
'nir_vars_test',
|
||||
files('tests/vars_tests.cpp'),
|
||||
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
|
||||
include_directories : [inc_common],
|
||||
dependencies : [dep_thread, idep_gtest, idep_nir],
|
||||
link_with : libmesa_util,
|
||||
)
|
||||
)
|
||||
endif
|
||||
|
Reference in New Issue
Block a user