dawn-cmake/test/bug/tint/1088.spvasm.expected.spvasm
James Price 34f7eedf74 test: Update expected test output
This new test was added around the same time as the entry point IO
rework, so the (now incorrect) test output made it past the bots.

Change-Id: I89fc4041b9cd00cd363ba61d07371554263eca96
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/61460
Auto-Submit: James Price <jrprice@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
2021-08-10 16:16:55 +00:00

198 lines
8.9 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 121
; Schema: 0
OpCapability Shader
%74 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %position_param_1 %uv_param_1 %normal_param_1 %gl_Position_1 %vUV_1_1 %vertex_point_size
OpName %position_param_1 "position_param_1"
OpName %uv_param_1 "uv_param_1"
OpName %normal_param_1 "normal_param_1"
OpName %gl_Position_1 "gl_Position_1"
OpName %vUV_1_1 "vUV_1_1"
OpName %vertex_point_size "vertex_point_size"
OpName %position "position"
OpName %LeftOver "LeftOver"
OpMemberName %LeftOver 0 "worldViewProjection"
OpMemberName %LeftOver 1 "time"
OpMemberName %LeftOver 2 "test2"
OpMemberName %LeftOver 3 "test"
OpName %x_14 "x_14"
OpName %vUV "vUV"
OpName %uv "uv"
OpName %normal "normal"
OpName %gl_Position "gl_Position"
OpName %main_1 "main_1"
OpName %q "q"
OpName %p "p"
OpName %main_out "main_out"
OpMemberName %main_out 0 "gl_Position"
OpMemberName %main_out 1 "vUV_1"
OpName %main_inner "main_inner"
OpName %position_param "position_param"
OpName %uv_param "uv_param"
OpName %normal_param "normal_param"
OpName %main "main"
OpDecorate %position_param_1 Location 0
OpDecorate %uv_param_1 Location 2
OpDecorate %normal_param_1 Location 1
OpDecorate %gl_Position_1 BuiltIn Position
OpDecorate %vUV_1_1 Location 0
OpDecorate %vertex_point_size BuiltIn PointSize
OpDecorate %LeftOver Block
OpMemberDecorate %LeftOver 0 Offset 0
OpMemberDecorate %LeftOver 0 ColMajor
OpMemberDecorate %LeftOver 0 MatrixStride 16
OpMemberDecorate %LeftOver 1 Offset 64
OpMemberDecorate %LeftOver 2 Offset 80
OpMemberDecorate %LeftOver 2 ColMajor
OpMemberDecorate %LeftOver 2 MatrixStride 16
OpDecorate %_arr_mat4v4float_uint_2 ArrayStride 64
OpMemberDecorate %LeftOver 3 Offset 208
OpDecorate %_arr_float_uint_4 ArrayStride 16
OpDecorate %x_14 NonWritable
OpDecorate %x_14 DescriptorSet 2
OpDecorate %x_14 Binding 2
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 16
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%_ptr_Input_v3float = OpTypePointer Input %v3float
%position_param_1 = OpVariable %_ptr_Input_v3float Input
%v2float = OpTypeVector %float 2
%_ptr_Input_v2float = OpTypePointer Input %v2float
%uv_param_1 = OpVariable %_ptr_Input_v2float Input
%normal_param_1 = OpVariable %_ptr_Input_v3float Input
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%12 = OpConstantNull %v4float
%gl_Position_1 = OpVariable %_ptr_Output_v4float Output %12
%_ptr_Output_v2float = OpTypePointer Output %v2float
%15 = OpConstantNull %v2float
%vUV_1_1 = OpVariable %_ptr_Output_v2float Output %15
%_ptr_Output_float = OpTypePointer Output %float
%18 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %18
%_ptr_Private_v3float = OpTypePointer Private %v3float
%21 = OpConstantNull %v3float
%position = OpVariable %_ptr_Private_v3float Private %21
%mat4v4float = OpTypeMatrix %v4float 4
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_mat4v4float_uint_2 = OpTypeArray %mat4v4float %uint_2
%uint_4 = OpConstant %uint 4
%_arr_float_uint_4 = OpTypeArray %float %uint_4
%LeftOver = OpTypeStruct %mat4v4float %float %_arr_mat4v4float_uint_2 %_arr_float_uint_4
%_ptr_Uniform_LeftOver = OpTypePointer Uniform %LeftOver
%x_14 = OpVariable %_ptr_Uniform_LeftOver Uniform
%_ptr_Private_v2float = OpTypePointer Private %v2float
%vUV = OpVariable %_ptr_Private_v2float Private %15
%uv = OpVariable %_ptr_Private_v2float Private %15
%normal = OpVariable %_ptr_Private_v3float Private %21
%_ptr_Private_v4float = OpTypePointer Private %v4float
%gl_Position = OpVariable %_ptr_Private_v4float Private %12
%void = OpTypeVoid
%37 = OpTypeFunction %void
%_ptr_Function_v4float = OpTypePointer Function %v4float
%_ptr_Function_v3float = OpTypePointer Function %v3float
%float_1 = OpConstant %float 1
%uint_0 = OpConstant %uint 0
%_ptr_Function_float = OpTypePointer Function %float
%uint_3 = OpConstant %uint 3
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%uint_1 = OpConstant %uint 1
%_ptr_Private_float = OpTypePointer Private %float
%float_4 = OpConstant %float 4
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
%float_n1 = OpConstant %float -1
%main_out = OpTypeStruct %v4float %v2float
%102 = OpTypeFunction %main_out %v3float %v2float %v3float
%main_1 = OpFunction %void None %37
%40 = OpLabel
%q = OpVariable %_ptr_Function_v4float Function %12
%p = OpVariable %_ptr_Function_v3float Function %21
%45 = OpLoad %v3float %position
%46 = OpCompositeExtract %float %45 0
%47 = OpCompositeExtract %float %45 1
%48 = OpCompositeExtract %float %45 2
%50 = OpCompositeConstruct %v4float %46 %47 %48 %float_1
OpStore %q %50
%51 = OpLoad %v4float %q
%52 = OpCompositeExtract %float %51 0
%53 = OpCompositeExtract %float %51 1
%54 = OpCompositeExtract %float %51 2
%55 = OpCompositeConstruct %v3float %52 %53 %54
OpStore %p %55
%58 = OpAccessChain %_ptr_Function_float %p %uint_0
%59 = OpLoad %float %58
%64 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_3 %int_0
%65 = OpLoad %float %64
%68 = OpAccessChain %_ptr_Private_float %position %uint_1
%69 = OpLoad %float %68
%70 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_1
%71 = OpLoad %float %70
%72 = OpAccessChain %_ptr_Function_float %p %uint_0
%75 = OpFMul %float %65 %69
%76 = OpFAdd %float %75 %71
%73 = OpExtInst %float %74 Sin %76
%77 = OpFAdd %float %59 %73
OpStore %72 %77
%78 = OpAccessChain %_ptr_Function_float %p %uint_1
%79 = OpLoad %float %78
%80 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_1
%81 = OpLoad %float %80
%82 = OpAccessChain %_ptr_Function_float %p %uint_1
%85 = OpFAdd %float %81 %float_4
%83 = OpExtInst %float %74 Sin %85
%86 = OpFAdd %float %79 %83
OpStore %82 %86
%88 = OpAccessChain %_ptr_Uniform_mat4v4float %x_14 %uint_0
%89 = OpLoad %mat4v4float %88
%90 = OpLoad %v3float %p
%91 = OpCompositeExtract %float %90 0
%92 = OpCompositeExtract %float %90 1
%93 = OpCompositeExtract %float %90 2
%94 = OpCompositeConstruct %v4float %91 %92 %93 %float_1
%95 = OpMatrixTimesVector %v4float %89 %94
OpStore %gl_Position %95
%96 = OpLoad %v2float %uv
OpStore %vUV %96
%97 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%98 = OpLoad %float %97
%99 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%101 = OpFMul %float %98 %float_n1
OpStore %99 %101
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %102
%position_param = OpFunctionParameter %v3float
%uv_param = OpFunctionParameter %v2float
%normal_param = OpFunctionParameter %v3float
%108 = OpLabel
OpStore %position %position_param
OpStore %uv %uv_param
OpStore %normal %normal_param
%109 = OpFunctionCall %void %main_1
%110 = OpLoad %v4float %gl_Position
%111 = OpLoad %v2float %vUV
%112 = OpCompositeConstruct %main_out %110 %111
OpReturnValue %112
OpFunctionEnd
%main = OpFunction %void None %37
%114 = OpLabel
%116 = OpLoad %v3float %position_param_1
%117 = OpLoad %v2float %uv_param_1
%118 = OpLoad %v3float %normal_param_1
%115 = OpFunctionCall %main_out %main_inner %116 %117 %118
%119 = OpCompositeExtract %v4float %115 0
OpStore %gl_Position_1 %119
%120 = OpCompositeExtract %v2float %115 1
OpStore %vUV_1_1 %120
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd