blob: 3b2867c99fccd50e2d88a9e6a57a5bb99c0def6d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 56
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f" %local_invocation_index_1
OpExecutionMode %f LocalSize 1 1 1
OpName %local_invocation_index_1 "local_invocation_index_1"
OpName %u_block "u_block"
OpMemberName %u_block 0 "inner"
OpName %u "u"
OpName %w "w"
OpName %tint_zero_workgroup_memory "tint_zero_workgroup_memory"
OpName %local_idx "local_idx"
OpName %f_inner "f_inner"
OpName %local_invocation_index "local_invocation_index"
OpName %f "f"
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
OpDecorate %u_block Block
OpMemberDecorate %u_block 0 Offset 0
OpMemberDecorate %u_block 0 ColMajor
OpMemberDecorate %u_block 0 MatrixStride 16
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%mat2v4float = OpTypeMatrix %v4float 2
%u_block = OpTypeStruct %mat2v4float
%_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
%u = OpVariable %_ptr_Uniform_u_block Uniform
%_ptr_Workgroup_mat2v4float = OpTypePointer Workgroup %mat2v4float
%w = OpVariable %_ptr_Workgroup_mat2v4float Workgroup
%void = OpTypeVoid
%12 = OpTypeFunction %void %uint
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%22 = OpConstantNull %mat2v4float
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Workgroup_v4float = OpTypePointer Workgroup %v4float
%38 = OpConstantNull %int
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%_ptr_Workgroup_float = OpTypePointer Workgroup %float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%51 = OpTypeFunction %void
%tint_zero_workgroup_memory = OpFunction %void None %12
%local_idx = OpFunctionParameter %uint
%16 = OpLabel
%18 = OpULessThan %bool %local_idx %uint_1
OpSelectionMerge %20 None
OpBranchConditional %18 %21 %20
%21 = OpLabel
OpStore %w %22
OpBranch %20
%20 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
OpReturn
OpFunctionEnd
%f_inner = OpFunction %void None %12
%local_invocation_index = OpFunctionParameter %uint
%28 = OpLabel
%29 = OpFunctionCall %void %tint_zero_workgroup_memory %local_invocation_index
%32 = OpAccessChain %_ptr_Uniform_mat2v4float %u %uint_0
%33 = OpLoad %mat2v4float %32
OpStore %w %33
%37 = OpAccessChain %_ptr_Workgroup_v4float %w %int_1
%40 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %38
%41 = OpLoad %v4float %40
OpStore %37 %41
%42 = OpAccessChain %_ptr_Workgroup_v4float %w %int_1
%43 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %38
%44 = OpLoad %v4float %43
%45 = OpVectorShuffle %v4float %44 %44 1 3 0 2
OpStore %42 %45
%47 = OpAccessChain %_ptr_Workgroup_float %w %38 %int_1
%49 = OpAccessChain %_ptr_Uniform_float %u %uint_0 %int_1 %38
%50 = OpLoad %float %49
OpStore %47 %50
OpReturn
OpFunctionEnd
%f = OpFunction %void None %51
%53 = OpLabel
%55 = OpLoad %uint %local_invocation_index_1
%54 = OpFunctionCall %void %f_inner %55
OpReturn
OpFunctionEnd