test/tint: Fix e2e test generation for vec / mat
Where the intrinsic uses the fixed-dimension form of the types.
Change-Id: I1709382f762fe7394bbd88f428f09b15a1a8a643
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108642
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
diff --git a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.spvasm b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.spvasm
index 22d3d46..f15b6dd 100644
--- a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.spvasm
+++ b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.spvasm
@@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
-; Bound: 37
+; Bound: 41
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@@ -38,36 +38,40 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
- %int_0 = OpConstant %int 0
+ %v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
- %22 = OpConstantComposite %v3int %int_0 %int_0 %int_1
- %23 = OpTypeFunction %v4float
+ %22 = OpConstantComposite %v2int %int_1 %int_1
%float_1 = OpConstant %float 1
+ %27 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
+ %28 = OpTypeFunction %v4float
%textureStore_4fc057 = OpFunction %void None %12
%15 = OpLabel
%17 = OpLoad %11 %arg_0
- OpImageWrite %17 %22 %5
+ %23 = OpCompositeExtract %int %22 0
+ %24 = OpCompositeExtract %int %22 1
+ %25 = OpCompositeConstruct %v3int %23 %24 %int_1
+ OpImageWrite %17 %25 %27
OpReturn
OpFunctionEnd
-%vertex_main_inner = OpFunction %v4float None %23
- %25 = OpLabel
- %26 = OpFunctionCall %void %textureStore_4fc057
+%vertex_main_inner = OpFunction %v4float None %28
+ %30 = OpLabel
+ %31 = OpFunctionCall %void %textureStore_4fc057
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %12
- %28 = OpLabel
- %29 = OpFunctionCall %v4float %vertex_main_inner
- OpStore %value %29
+ %33 = OpLabel
+ %34 = OpFunctionCall %v4float %vertex_main_inner
+ OpStore %value %34
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %12
- %32 = OpLabel
- %33 = OpFunctionCall %void %textureStore_4fc057
+ %36 = OpLabel
+ %37 = OpFunctionCall %void %textureStore_4fc057
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %12
- %35 = OpLabel
- %36 = OpFunctionCall %void %textureStore_4fc057
+ %39 = OpLabel
+ %40 = OpFunctionCall %void %textureStore_4fc057
OpReturn
OpFunctionEnd