dawn-cmake/src
David Neto 6d67dad7fe spirv-reader: Ignore duplicate decorations
Vulkan allows them, but WGSL does not.

A duplicate decoration is purely redundant.
A parameterized decoratio with different parameterization is
an inconsistency and a semantic error, at least for currently defined
SPIR-V decorations.

So for each target, only take the first decoration of each kind.

Fixed: tint:1337
Change-Id: I6ed5c39cf2e213c695cb8217ed1b97814da3db56
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/72500
Reviewed-by: Ben Clayton <bclayton@google.com>
Auto-Submit: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: James Price <jrprice@google.com>
2021-12-13 17:54:21 +00:00
..
ast Document that ast::Variable::type can be null 2021-12-10 21:51:05 +00:00
diagnostic Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
inspector Remove {ast,sem}::Struct::IsBlockDecorated() 2021-12-09 15:45:03 +00:00
reader spirv-reader: Ignore duplicate decorations 2021-12-13 17:54:21 +00:00
resolver spirv: Add block decorations with a transform 2021-12-09 15:45:03 +00:00
sem Remove {ast,sem}::Struct::IsBlockDecorated() 2021-12-09 15:45:03 +00:00
transform HLSL: work around FXC failures when dynamically indexing arrays in structs 2021-12-13 15:55:11 +00:00
utils utils: Add copy constructor to EnumSet 2021-12-02 13:00:32 +00:00
val Make HLSL validation run with same flags as Dawn 2021-12-07 14:40:47 +00:00
writer HLSL: work around FXC failures when dynamically indexing arrays in structs 2021-12-13 15:55:11 +00:00
BUILD.gn HLSL: work around FXC failures when dynamically indexing arrays in structs 2021-12-13 15:55:11 +00:00
CMakeLists.txt HLSL: work around FXC failures when dynamically indexing arrays in structs 2021-12-13 15:55:11 +00:00
block_allocator.h Remove sem::AccessControl 2021-05-14 17:51:13 +00:00
block_allocator_test.cc Add tint::BlockAllocator<T> 2021-01-21 15:30:10 +00:00
castable.cc Pull Is() out of castable and into a new TypeInfo 2021-03-02 20:30:08 +00:00
castable.h traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00
castable_test.cc castable: Infer Is() TO type from predicate 2021-08-23 15:16:42 +00:00
clone_context.cc utils: Add Lookup() 2021-11-23 18:37:37 +00:00
clone_context.h traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00
clone_context_test.cc Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
debug.cc diag: Add System enumerator to all diagnostics 2021-06-24 11:27:36 +00:00
debug.h Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
debug_test.cc diag: Add System enumerator to all diagnostics 2021-06-24 11:27:36 +00:00
demangler.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
demangler.h Simplify calls to ast::Node::[to_]str() 2021-01-29 11:22:40 +00:00
demangler_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
intrinsic_table.cc utils: Add Lookup() 2021-11-23 18:37:37 +00:00
intrinsic_table.h IntrinsicTable: De-duplicate returned Intrinsics 2021-07-15 20:34:21 +00:00
intrinsic_table.inl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
intrinsic_table.inl.tmpl IntrinsicTable: remove double underscores 2021-11-22 15:24:16 +00:00
intrinsic_table_test.cc Cleanup intrinsic table tests 2021-11-04 19:36:25 +00:00
intrinsics.def Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
program.cc Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
program.h Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
program_builder.cc ProgramBuilder: Don't wrap call-exprs with a call-stmts 2021-11-12 13:20:46 +00:00
program_builder.h HLSL: work around FXC failures when dynamically indexing arrays in structs 2021-12-13 15:55:11 +00:00
program_builder_test.cc ast: Keep style consistent 2021-10-15 17:33:10 +00:00
program_id.cc ProgramID: Move hot code out of template function 2021-10-15 13:46:50 +00:00
program_id.h ProgramID: Move hot code out of template function 2021-10-15 13:46:50 +00:00
program_test.cc ast: Remove to_str() and type_name() 2021-10-14 21:25:49 +00:00
scope_stack.h resolver: Add dependency-graph analysis 2021-11-22 11:44:57 +00:00
scope_stack_test.cc resolver: Add dependency-graph analysis 2021-11-22 11:44:57 +00:00
source.cc Resolver: Check that every AST node is reached once 2021-04-19 19:16:12 +00:00
source.h wgsl parser: use new TypesBuilder factory functions, and set Source for ast::Type nodes 2021-04-27 17:32:37 +00:00
symbol.cc Add TINT_SYMBOL_STORE_DEBUG_NAME option to help debugging the AST 2021-12-07 14:43:17 +00:00
symbol.h Add TINT_SYMBOL_STORE_DEBUG_NAME option to help debugging the AST 2021-12-07 14:43:17 +00:00
symbol_table.cc Add TINT_SYMBOL_STORE_DEBUG_NAME option to help debugging the AST 2021-12-07 14:43:17 +00:00
symbol_table.h Fix TextGenerator::UniqueIdentifier() failing with empty string arg 2021-06-29 22:07:05 +00:00
symbol_table_test.cc Fix TextGenerator::UniqueIdentifier() failing with empty string arg 2021-06-29 22:07:05 +00:00
symbol_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
test_main.cc Fix build when TINT_BUILD_[WGSL|SPV|MSL|HLSL]_[READER|WRITER] are toggled off 2021-09-03 14:16:56 +00:00
traits.h traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00
traits_test.cc traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00