dawn-cmake/src/transform
James Price f66f651374 transform/BindingRemapper: Validate access mode
Ensure that remapped access modes are valid enum values.

NB: This is hard to test, as UBSan flags an out-of-range enum value as
a hard error.

Fixed: chromium:1248754, chromium:1248755
Change-Id: I2e686843134e6a285fb8316a1960fc4eadff2a93
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/64120
Auto-Submit: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-09-13 14:58:39 +00:00
..
add_empty_entry_point.cc transform: Add transform to add empty entry point 2021-09-07 18:59:21 +00:00
add_empty_entry_point.h transform: Add transform to add empty entry point 2021-09-07 18:59:21 +00:00
add_empty_entry_point_test.cc transform: Add transform to add empty entry point 2021-09-07 18:59:21 +00:00
array_length_from_uniform.cc sem: Split sem::Variable into global, local and parameter 2021-07-22 13:24:59 +00:00
array_length_from_uniform.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
array_length_from_uniform_test.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
binding_remapper.cc transform/BindingRemapper: Validate access mode 2021-09-13 14:58:39 +00:00
binding_remapper.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
binding_remapper_test.cc Remove depreated APIs and WGSL 2021-07-06 10:20:19 +00:00
calculate_array_length.cc Converting to Atomic-Free Plain to Constructible 2021-07-07 20:41:00 +00:00
calculate_array_length.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
calculate_array_length_test.cc Converting to Atomic-Free Plain to Constructible 2021-07-07 20:41:00 +00:00
canonicalize_entry_point_io.cc spirv: Handle sample_mask in shader IO transform 2021-09-07 18:59:21 +00:00
canonicalize_entry_point_io.h spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
canonicalize_entry_point_io_test.cc spirv: Handle sample_mask in shader IO transform 2021-09-07 18:59:21 +00:00
decompose_memory_access.cc Implement atomicSub intrinsic 2021-08-26 15:26:25 +00:00
decompose_memory_access.h Implement atomicSub intrinsic 2021-08-26 15:26:25 +00:00
decompose_memory_access_test.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
decompose_strided_matrix.cc reader/spirv: Handle the MatrixStride decoration 2021-07-27 08:17:29 +00:00
decompose_strided_matrix.h reader/spirv: Handle the MatrixStride decoration 2021-07-27 08:17:29 +00:00
decompose_strided_matrix_test.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
external_texture_transform.cc Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
external_texture_transform.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
external_texture_transform_test.cc Remove texture_external overload for textureSample and add textureSampleLevel 2021-05-12 10:37:03 +00:00
first_index_offset.cc Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
first_index_offset.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
first_index_offset_test.cc reader/wgsl: Remove old shader IO syntax 2021-06-18 20:14:07 +00:00
fold_constants.cc sem: Rename `Vector::size()` to `Vector::Width()` 2021-07-22 18:31:34 +00:00
fold_constants.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
fold_constants_test.cc Implement a FoldConstants transform that currently folds scalar and vector conversions 2021-06-18 14:59:51 +00:00
fold_trivial_single_use_lets.cc transform: Add FoldTrivialSingleUseLets 2021-07-02 21:15:44 +00:00
fold_trivial_single_use_lets.h transform: Add FoldTrivialSingleUseLets 2021-07-02 21:15:44 +00:00
fold_trivial_single_use_lets_test.cc transform: Add FoldTrivialSingleUseLets 2021-07-02 21:15:44 +00:00
for_loop_to_loop.cc [transform] Add ForLoopToLoop 2021-07-08 10:00:17 +00:00
for_loop_to_loop.h [transform] Add ForLoopToLoop 2021-07-08 10:00:17 +00:00
for_loop_to_loop_test.cc [transform] Add ForLoopToLoop 2021-07-08 10:00:17 +00:00
inline_pointer_lets.cc transform/InlinePtrLets: Fix ICE for lets in for-loops 2021-07-15 22:20:29 +00:00
inline_pointer_lets.h Converting to Atomic-Free Plain to Constructible 2021-07-07 20:41:00 +00:00
inline_pointer_lets_test.cc validation: validate function call pointer parameter 2021-07-20 18:14:02 +00:00
loop_to_for_loop.cc transform: LoopToForLoop - fix bad emission 2021-07-29 18:05:19 +00:00
loop_to_for_loop.h [transform] Add ForLoopToLoop 2021-07-08 10:00:17 +00:00
loop_to_for_loop_test.cc transform: LoopToForLoop - fix bad emission 2021-07-29 18:05:19 +00:00
manager.cc transform: Add a debug flag to dump WGSL 2021-07-15 20:24:38 +00:00
manager.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
module_scope_var_to_entry_point_param.cc transform: Add ModuleScopeVarToEntryPointParam 2021-09-07 18:59:21 +00:00
module_scope_var_to_entry_point_param.h transform: Add ModuleScopeVarToEntryPointParam 2021-09-07 18:59:21 +00:00
module_scope_var_to_entry_point_param_test.cc msl/module-scope-var: Add unit test for folding &* 2021-09-07 18:59:21 +00:00
pad_array_elements.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
pad_array_elements.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
pad_array_elements_test.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
promote_initializers_to_const_var.cc Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
promote_initializers_to_const_var.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
promote_initializers_to_const_var_test.cc validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
renamer.cc msl: Add `matrix` to list of reserved keywords 2021-08-20 13:28:09 +00:00
renamer.h Remove depreated APIs and WGSL 2021-07-06 10:20:19 +00:00
renamer_test.cc msl: Add `matrix` to list of reserved keywords 2021-08-20 13:28:09 +00:00
robustness.cc sem: Rename `Vector::size()` to `Vector::Width()` 2021-07-22 18:31:34 +00:00
robustness.h transform: More robustness for texture ops 2021-07-15 16:41:05 +00:00
robustness_test.cc writer/wgsl: Fix texture_external type emission 2021-07-26 22:02:28 +00:00
simplify.cc Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
simplify.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
simplify_test.cc Add transform::Simplify 2021-05-21 21:01:23 +00:00
single_entry_point.cc Remove depreated APIs and WGSL 2021-07-06 10:20:19 +00:00
single_entry_point.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
single_entry_point_test.cc Remove depreated APIs and WGSL 2021-07-06 10:20:19 +00:00
test_helper.h reader/spirv: Handle the MatrixStride decoration 2021-07-27 08:17:29 +00:00
transform.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
transform.h transform: Remove unused function 2021-08-12 18:18:41 +00:00
transform_test.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
vertex_pulling.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
vertex_pulling.h Remove InputStepMode (it was deprecated in favor of VertexStepMode) 2021-07-27 07:33:19 +00:00
vertex_pulling_test.cc Remove InputStepMode (it was deprecated in favor of VertexStepMode) 2021-07-27 07:33:19 +00:00
wrap_arrays_in_structs.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
wrap_arrays_in_structs.h Program: Track what transforms have been applied 2021-06-25 10:26:26 +00:00
wrap_arrays_in_structs_test.cc Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
zero_init_workgroup_memory.cc transform: Optimize ZeroInitWorkgroupMemory for arrays 2021-07-30 14:08:06 +00:00
zero_init_workgroup_memory.h transform: Optimize ZeroInitWorkgroupMemory for arrays 2021-07-30 14:08:06 +00:00
zero_init_workgroup_memory_test.cc transform: Optimize ZeroInitWorkgroupMemory for arrays 2021-07-30 14:08:06 +00:00