blob: 9f5c63ec3b2225af9b4fd9d195c48093040b9951 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 53
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f" %f_local_invocation_index_Input
OpExecutionMode %f LocalSize 1 1 1
OpMemberName %u_block_std140 0 "inner_col0"
OpMemberName %u_block_std140 1 "inner_col1"
OpName %u_block_std140 "u_block_std140"
OpName %w "w"
OpName %f_local_invocation_index_Input "f_local_invocation_index_Input"
OpName %f_inner "f_inner"
OpName %tint_local_index "tint_local_index"
OpName %f "f"
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
OpDecorate %u_block_std140 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
OpDecorate %f_local_invocation_index_Input BuiltIn LocalInvocationIndex
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%u_block_std140 = OpTypeStruct %v4half %v4half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat2v4half = OpTypeMatrix %v4half 2
%_ptr_Workgroup_mat2v4half = OpTypePointer Workgroup %mat2v4half
%w = OpVariable %_ptr_Workgroup_mat2v4half Workgroup
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%f_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input
%void = OpTypeVoid
%15 = OpTypeFunction %void %uint
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%_ptr_Uniform_v4half = OpTypePointer Uniform %v4half
%uint_0 = OpConstant %uint 0
%_ptr_Workgroup_v4half = OpTypePointer Workgroup %v4half
%_ptr_Uniform_half = OpTypePointer Uniform %half
%_ptr_Workgroup_half = OpTypePointer Workgroup %half
%47 = OpConstantNull %mat2v4half
%49 = OpTypeFunction %void
%f_inner = OpFunction %void None %15
%tint_local_index = OpFunctionParameter %uint
%16 = OpLabel
%17 = OpULessThan %bool %tint_local_index %uint_1
OpSelectionMerge %20 None
OpBranchConditional %17 %21 %20
%21 = OpLabel
OpStore %w %47 None
OpBranch %20
%20 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
%25 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_0
%28 = OpLoad %v4half %25 None
%29 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_1
%30 = OpLoad %v4half %29 None
%31 = OpCompositeConstruct %mat2v4half %28 %30
OpStore %w %31 None
%32 = OpAccessChain %_ptr_Workgroup_v4half %w %uint_1
%34 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_0
%35 = OpLoad %v4half %34 None
OpStore %32 %35 None
%36 = OpAccessChain %_ptr_Workgroup_v4half %w %uint_1
%37 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_0
%38 = OpLoad %v4half %37 None
%39 = OpVectorShuffle %v4half %38 %38 1 3 0 2
OpStore %36 %39 None
%40 = OpAccessChain %_ptr_Workgroup_v4half %w %uint_0
%41 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_1
%42 = OpAccessChain %_ptr_Uniform_half %41 %uint_0
%44 = OpLoad %half %42 None
%45 = OpAccessChain %_ptr_Workgroup_half %40 %uint_1
OpStore %45 %44 None
OpReturn
OpFunctionEnd
%f = OpFunction %void None %49
%50 = OpLabel
%51 = OpLoad %uint %f_local_invocation_index_Input None
%52 = OpFunctionCall %void %f_inner %51
OpReturn
OpFunctionEnd