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
..
2021-05-14 17:51:13 +00:00
2021-11-11 16:07:12 +00:00
2021-11-23 18:37:37 +00:00
2021-11-11 16:07:12 +00:00
2021-10-19 18:38:54 +00:00
2021-11-23 18:37:37 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-11-11 16:07:12 +00:00
2021-11-11 16:07:12 +00:00