blob: 90cb2620ace146207b7f4aef86be5bbffe0ab81f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 66
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
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_std140 "u_block_std140"
OpMemberName %u_block_std140 0 "inner_0"
OpMemberName %u_block_std140 1 "inner_1"
OpName %u "u"
OpName %w "w"
OpName %tint_zero_workgroup_memory "tint_zero_workgroup_memory"
OpName %local_idx "local_idx"
OpName %load_u_inner "load_u_inner"
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_std140 Block
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
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
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%u_block_std140 = OpTypeStruct %v4half %v4half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat2v4half = OpTypeMatrix %v4half 2
%_ptr_Workgroup_mat2v4half = OpTypePointer Workgroup %mat2v4half
%w = OpVariable %_ptr_Workgroup_mat2v4half Workgroup
%void = OpTypeVoid
%12 = OpTypeFunction %void %uint
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%22 = OpConstantNull %mat2v4half
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%26 = OpTypeFunction %mat2v4half
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v4half = OpTypePointer Uniform %v4half
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Workgroup_v4half = OpTypePointer Workgroup %v4half
%54 = OpConstantNull %int
%_ptr_Workgroup_half = OpTypePointer Workgroup %half
%57 = OpConstantNull %uint
%_ptr_Uniform_half = OpTypePointer Uniform %half
%61 = 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
%load_u_inner = OpFunction %mat2v4half None %26
%28 = OpLabel
%33 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0
%34 = OpLoad %v4half %33
%36 = OpAccessChain %_ptr_Uniform_v4half %u %uint_1
%37 = OpLoad %v4half %36
%38 = OpCompositeConstruct %mat2v4half %34 %37
OpReturnValue %38
OpFunctionEnd
%f_inner = OpFunction %void None %12
%local_invocation_index = OpFunctionParameter %uint
%41 = OpLabel
%42 = OpFunctionCall %void %tint_zero_workgroup_memory %local_invocation_index
%43 = OpFunctionCall %mat2v4half %load_u_inner
OpStore %w %43
%47 = OpAccessChain %_ptr_Workgroup_v4half %w %int_1
%48 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0
%49 = OpLoad %v4half %48
OpStore %47 %49
%50 = OpAccessChain %_ptr_Workgroup_v4half %w %int_1
%51 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0
%52 = OpLoad %v4half %51
%53 = OpVectorShuffle %v4half %52 %52 1 3 0 2
OpStore %50 %53
%56 = OpAccessChain %_ptr_Workgroup_half %w %54 %int_1
%59 = OpAccessChain %_ptr_Uniform_half %u %uint_1 %57
%60 = OpLoad %half %59
OpStore %56 %60
OpReturn
OpFunctionEnd
%f = OpFunction %void None %61
%63 = OpLabel
%65 = OpLoad %uint %local_invocation_index_1
%64 = OpFunctionCall %void %f_inner %65
OpReturn
OpFunctionEnd