android13/external/swiftshader/third_party/SPIRV-Tools/test/diff/diff_files
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
OpExtInst_in_dst_only_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpExtInst_in_dst_only_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpExtInst_in_dst_only_src.spvasm initial 2024-06-22 20:45:49 +08:00
OpExtInst_in_src_only_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpExtInst_in_src_only_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpExtInst_in_src_only_src.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_basic_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_basic_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_basic_src.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_intertwined_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_intertwined_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_intertwined_src.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_mismatching_class_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_mismatching_class_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_mismatching_class_src.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_mismatching_type_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_mismatching_type_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_mismatching_type_src.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_nested_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_nested_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_nested_src.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_onesided_debug_autogen.cpp initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_onesided_debug_dst.spvasm initial 2024-06-22 20:45:49 +08:00
OpTypeForwardPointer_onesided_debug_src.spvasm initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
basic_autogen.cpp initial 2024-06-22 20:45:49 +08:00
basic_dst.spvasm initial 2024-06-22 20:45:49 +08:00
basic_src.spvasm initial 2024-06-22 20:45:49 +08:00
constant_array_size_autogen.cpp initial 2024-06-22 20:45:49 +08:00
constant_array_size_dst.spvasm initial 2024-06-22 20:45:49 +08:00
constant_array_size_src.spvasm initial 2024-06-22 20:45:49 +08:00
diff_test_files_autogen.cmake initial 2024-06-22 20:45:49 +08:00
different_decorations_fragment_autogen.cpp initial 2024-06-22 20:45:49 +08:00
different_decorations_fragment_dst.spvasm initial 2024-06-22 20:45:49 +08:00
different_decorations_fragment_src.spvasm initial 2024-06-22 20:45:49 +08:00
different_decorations_vertex_autogen.cpp initial 2024-06-22 20:45:49 +08:00
different_decorations_vertex_dst.spvasm initial 2024-06-22 20:45:49 +08:00
different_decorations_vertex_src.spvasm initial 2024-06-22 20:45:49 +08:00
different_function_parameter_count_autogen.cpp initial 2024-06-22 20:45:49 +08:00
different_function_parameter_count_dst.spvasm initial 2024-06-22 20:45:49 +08:00
different_function_parameter_count_src.spvasm initial 2024-06-22 20:45:49 +08:00
extra_if_block_autogen.cpp initial 2024-06-22 20:45:49 +08:00
extra_if_block_dst.spvasm initial 2024-06-22 20:45:49 +08:00
extra_if_block_src.spvasm initial 2024-06-22 20:45:49 +08:00
generate_tests.py initial 2024-06-22 20:45:49 +08:00
index_signedness_autogen.cpp initial 2024-06-22 20:45:49 +08:00
index_signedness_dst.spvasm initial 2024-06-22 20:45:49 +08:00
index_signedness_src.spvasm initial 2024-06-22 20:45:49 +08:00
int_vs_uint_constants_autogen.cpp initial 2024-06-22 20:45:49 +08:00
int_vs_uint_constants_dst.spvasm initial 2024-06-22 20:45:49 +08:00
int_vs_uint_constants_src.spvasm initial 2024-06-22 20:45:49 +08:00
large_functions_large_diffs_autogen.cpp initial 2024-06-22 20:45:49 +08:00
large_functions_large_diffs_dst.spvasm initial 2024-06-22 20:45:49 +08:00
large_functions_large_diffs_src.spvasm initial 2024-06-22 20:45:49 +08:00
large_functions_small_diffs_autogen.cpp initial 2024-06-22 20:45:49 +08:00
large_functions_small_diffs_dst.spvasm initial 2024-06-22 20:45:49 +08:00
large_functions_small_diffs_src.spvasm initial 2024-06-22 20:45:49 +08:00
multiple_different_entry_points_autogen.cpp initial 2024-06-22 20:45:49 +08:00
multiple_different_entry_points_dst.spvasm initial 2024-06-22 20:45:49 +08:00
multiple_different_entry_points_src.spvasm initial 2024-06-22 20:45:49 +08:00
multiple_same_entry_points_autogen.cpp initial 2024-06-22 20:45:49 +08:00
multiple_same_entry_points_dst.spvasm initial 2024-06-22 20:45:49 +08:00
multiple_same_entry_points_src.spvasm initial 2024-06-22 20:45:49 +08:00
reordered_if_blocks_autogen.cpp initial 2024-06-22 20:45:49 +08:00
reordered_if_blocks_dst.spvasm initial 2024-06-22 20:45:49 +08:00
reordered_if_blocks_src.spvasm initial 2024-06-22 20:45:49 +08:00
reordered_switch_blocks_autogen.cpp initial 2024-06-22 20:45:49 +08:00
reordered_switch_blocks_dst.spvasm initial 2024-06-22 20:45:49 +08:00
reordered_switch_blocks_src.spvasm initial 2024-06-22 20:45:49 +08:00
small_functions_small_diffs_autogen.cpp initial 2024-06-22 20:45:49 +08:00
small_functions_small_diffs_dst.spvasm initial 2024-06-22 20:45:49 +08:00
small_functions_small_diffs_src.spvasm initial 2024-06-22 20:45:49 +08:00
spec_constant_array_size_autogen.cpp initial 2024-06-22 20:45:49 +08:00
spec_constant_array_size_dst.spvasm initial 2024-06-22 20:45:49 +08:00
spec_constant_array_size_src.spvasm initial 2024-06-22 20:45:49 +08:00
spec_constant_composite_autogen.cpp initial 2024-06-22 20:45:49 +08:00
spec_constant_composite_dst.spvasm initial 2024-06-22 20:45:49 +08:00
spec_constant_composite_src.spvasm initial 2024-06-22 20:45:49 +08:00
unrelated_shaders_autogen.cpp initial 2024-06-22 20:45:49 +08:00
unrelated_shaders_dst.spvasm initial 2024-06-22 20:45:49 +08:00
unrelated_shaders_src.spvasm initial 2024-06-22 20:45:49 +08:00

README.md

Diff tests

This directory contains files used to ensure correctness of the spirv-diff implementation. The generate_tests.py script takes name_src.spvasm and name_dst.spvasm (for each name) and produces unit test files in the form of name_autogen.cpp.

The unit test files test the diff between the src and dst inputs, as well as between debug-stripped versions of those. Additionally, based on the {variant}_TESTS lists defined in generate_tests.py, extra unit tests are added to exercise different options of spirv-diff.

New tests are added simply by placing a new name_src.spvasm and name_dst.spvasm pair in this directory and running generate_tests.py. Note that this script needs the path to the spirv-diff executable that is built.

The generate_tests.py script additionally expects name_src.spvasm to include a heading where the purpose of the test is explained. This heading is parsed as a block of lines starting with ;; at the top of the file.