dawn-cmake/src/tint
Zhaoming Jiang 5cbb32d764 Tint/tranfsorm/test: Refactor and add exhaustive test for Std140
This CL refactor unittests in std140_test.cc, and add exhaustive
parameterized unittests in std140_exhaustive_test.cc. In std140_test.cc,
only test Std140 transform result for `mat2x2<f32>` for matrix used as
array element type and `mat3x2<f32>` otherwise, and keep the source and
expected programs as plain WGSL code to ensure the readablity. In
std140_exhaustive_test.cc, all matrix shape and different constant index
are tested using parameterized WGSL code, at the cost of readablity.
This CL prepares for supporting f16 in Std140 transform by allowing
testing all shape of f16 matrix as well by simply adding parameters.

Bug: tint:1473, tint:1502
Change-Id: Ib2ef5bd806ee61eab04d73a415ba62c2191e2a7e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104282
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2022-10-11 07:55:00 +00:00
..
ast Rename StorageClass to AddressSpace. 2022-10-03 14:05:23 +00:00
bench tint: Add a benchmark for atan2 const eval 2022-07-19 14:50:33 +00:00
cmd tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
diagnostic Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
fuzzers tint: Disable tint_concurrency_fuzzer for win+asan 2022-10-10 11:38:49 +00:00
inspector Remove Inspector test for unsupported feature. 2022-10-03 20:26:01 +00:00
reader spirv-reader: Track storage class for pointer/ref values 2022-10-10 17:15:18 +00:00
resolver tint: Validate no f16 sampled textures 2022-10-10 11:37:57 +00:00
sem tint/sem: Add Type::HoldsAbstract() 2022-10-06 20:58:46 +00:00
templates tint/ast: Generate ast::StorageClass from intrinsics.def 2022-07-27 16:36:35 +00:00
text Expand ASCII short circuit. 2022-07-25 13:41:21 +00:00
transform Tint/tranfsorm/test: Refactor and add exhaustive test for Std140 2022-10-11 07:55:00 +00:00
utils tint/resolver: Consistently use utils::Result in ConstEval 2022-09-20 09:26:21 +00:00
val tint: Fix dxc on Linux 2022-08-03 21:40:46 +00:00
writer tint: Use PascalCase for builtin enum names 2022-10-06 19:23:29 +00:00
BUILD.gn Tint/tranfsorm/test: Refactor and add exhaustive test for Std140 2022-10-11 07:55:00 +00:00
CMakeLists.txt Tint/tranfsorm/test: Refactor and add exhaustive test for Std140 2022-10-11 07:55:00 +00:00
OWNERS Add top-level OWNERS and scope Tint owners more tightly. 2022-04-07 17:59:14 +00:00
castable.cc Fixup various warnings in Tint which were accidentally suppressed. 2022-06-29 14:38:15 +00:00
castable.h tint: Castable - optimize IsAnyOf() 2022-08-23 15:39:15 +00:00
castable_bench.cc tint/ast: Generate ast::StorageClass from intrinsics.def 2022-07-27 16:36:35 +00:00
castable_test.cc tint: Castable - support non-default-constructable return types 2022-05-05 19:18:00 +00:00
clone_context.cc tint::CloneContext: Use utils::Hashset and utils::Hashmap 2022-08-23 18:38:35 +00:00
clone_context.h tint::CloneContext: Use Hashmap::Generation() 2022-08-31 19:43:48 +00:00
clone_context_test.cc tint/ast: Migrate to utils::Vector 2022-08-02 17:03:35 +00:00
debug.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
debug.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
debug_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
demangler.cc Fixup various warnings in Tint which were accidentally suppressed. 2022-06-29 14:38:15 +00:00
demangler.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
demangler_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
intrinsics.def tint: Add _tint_materialize internal builtin 2022-10-06 19:54:07 +00:00
number.cc tint: refactor Number<T> constants for highest, lowest, etc. 2022-07-29 17:12:01 +00:00
number.h tint: add vector cases for const eval builtin tests 2022-10-04 22:40:32 +00:00
number_test.cc tint: add CheckedDiv for abstract numbers 2022-09-03 21:31:23 +00:00
program.cc tint: Add FriendlyName() to Program 2022-09-05 20:51:23 +00:00
program.h tint: Add FriendlyName() to Program 2022-09-05 20:51:23 +00:00
program_builder.cc tint: Add FriendlyName() to Program 2022-09-05 20:51:23 +00:00
program_builder.h Rename StorageClass to AddressSpace. 2022-10-03 14:05:23 +00:00
program_builder_test.cc tint/ast: Migrate to utils::Vector 2022-08-02 17:03:35 +00:00
program_id.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
program_id.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
program_test.cc Rename StorageClass to AddressSpace. 2022-10-03 14:05:23 +00:00
reflection.h tint: Add TINT_REFLECT() & ForeachField() 2022-09-02 11:40:19 +00:00
reflection_test.cc tint: Add TINT_REFLECT() & ForeachField() 2022-09-02 11:40:19 +00:00
scope_stack.h tint: Implement uniformity analaysis 2022-05-11 22:05:15 +00:00
scope_stack_test.cc tint: Implement uniformity analaysis 2022-05-11 22:05:15 +00:00
source.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
source.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
source_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol.cc tint: Fix TINT_SYMBOL_STORE_DEBUG_NAME 2022-07-21 22:06:05 +00:00
symbol.h tint: Fix doxygen error. 2022-08-01 17:25:44 +00:00
symbol_table.cc Add InsertBraces: true to .clang-format 2022-05-19 20:08:19 +00:00
symbol_table.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol_table_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
test_main.cc tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
tint.natvis tint: natvis: add utils::Slice, utils::Vector, and utils::VectorRef 2022-08-15 18:29:21 +00:00
traits.h tint: const eval of 'select' builtin 2022-10-05 01:39:53 +00:00
traits_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00