[tint][test] Remove duplicated SPIR-V decorations
This has always been invalid in SPIR-V but spirv-val has only recently
started complaining. Remove one whole test that was specifically
testing duplicates and remove duplicate decorations from another test.
Fixed: tint:2228
Change-Id: I3f06aa8104d16b2b22d001a1d935df62b75916e2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/183960
Commit-Queue: James Price <jrprice@google.com>
Auto-Submit: James Price <jrprice@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_StorageBuffer_NonWritable_NotAllMembers_DuplicatedOnSameMember.spvasm b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_StorageBuffer_NonWritable_NotAllMembers_DuplicatedOnSameMember.spvasm
deleted file mode 100644
index c2b3547..0000000
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_StorageBuffer_NonWritable_NotAllMembers_DuplicatedOnSameMember.spvasm
+++ /dev/null
@@ -1,28 +0,0 @@
-; Test: SpvModuleScopeVarParserTest_StorageBuffer_NonWritable_NotAllMembers_DuplicatedOnSameMember.spvasm
-; SPIR-V
-; Version: 1.0
-; Generator: Khronos SPIR-V Tools Assembler; 0
-; Bound: 9
-; Schema: 0
-OpCapability Shader
-OpMemoryModel Logical Simple
-OpEntryPoint Fragment %2 "main"
-OpExecutionMode %2 OriginUpperLeft
-OpDecorate %_struct_3 Block
-OpDecorate %1 DescriptorSet 0
-OpDecorate %1 Binding 0
-OpMemberDecorate %_struct_3 0 NonWritable
-OpMemberDecorate %_struct_3 0 NonWritable
-OpMemberDecorate %_struct_3 0 Offset 0
-OpMemberDecorate %_struct_3 1 Offset 4
-%void = OpTypeVoid
-%5 = OpTypeFunction %void
-%float = OpTypeFloat 32
-%_struct_3 = OpTypeStruct %float %float
-%_ptr_StorageBuffer__struct_3 = OpTypePointer StorageBuffer %_struct_3
-%1 = OpVariable %_ptr_StorageBuffer__struct_3 StorageBuffer
-%2 = OpFunction %void None %5
-%8 = OpLabel
-OpReturn
-OpFunctionEnd
-
diff --git a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_StorageBuffer_NonWritable_NotAllMembers_DuplicatedOnSameMember.spvasm.expected.ir.msl b/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_StorageBuffer_NonWritable_NotAllMembers_DuplicatedOnSameMember.spvasm.expected.ir.msl
deleted file mode 100644
index 4c74815..0000000
--- a/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest_StorageBuffer_NonWritable_NotAllMembers_DuplicatedOnSameMember.spvasm.expected.ir.msl
+++ /dev/null
@@ -1,30 +0,0 @@
-SKIP: FAILED
-
-<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: S = struct @align(4) {
- field0:f32 @offset(0)
- field1:f32 @offset(4)
-}
-
-%b1 = block { # root
- %x_1:ptr<storage, S, read_write> = var @binding_point(0, 0)
-}
-
-%main_1 = func():void -> %b2 {
- %b2 = block {
- ret
- }
-}
-%tint_symbol = @fragment func():void -> %b3 {
- %b3 = block {
- %4:void = call %main_1
- ret
- }
-}
-
-unhandled variable address space
-********************************************************************
-* The tint shader compiler has encountered an unexpected error. *
-* *
-* Please help us fix this issue by submitting a bug report at *
-* crbug.com/tint with the source program that triggered the bug. *
-********************************************************************
diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.spvasm b/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.spvasm
index 180f484..5d3f19a 100644
--- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.spvasm
+++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.spvasm
@@ -23,8 +23,6 @@
OpDecorate %9 RelaxedPrecision
OpDecorate %10 RelaxedPrecision
OpDecorate %11 RelaxedPrecision
- OpDecorate %10 RelaxedPrecision
- OpDecorate %10 RelaxedPrecision
%void = OpTypeVoid
%13 = OpTypeFunction %void
%int = OpTypeInt 32 1