blob: 99e2b4235d2abf0e840743b39594c8e6e8edb716 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 55
; 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"
OpMemberName %u_block_std140 2 "inner_col2"
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
OpMemberDecorate %u_block_std140 2 Offset 16
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 %v4half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat3v4half = OpTypeMatrix %v4half 3
%_ptr_Workgroup_mat3v4half = OpTypePointer Workgroup %mat3v4half
%w = OpVariable %_ptr_Workgroup_mat3v4half 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
%49 = OpConstantNull %mat3v4half
%51 = 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 %49 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 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_2
%32 = OpLoad %v4half %31 None
%33 = OpCompositeConstruct %mat3v4half %28 %30 %32
OpStore %w %33 None
%34 = OpAccessChain %_ptr_Workgroup_v4half %w %uint_1
%36 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_0
%37 = OpLoad %v4half %36 None
OpStore %34 %37 None
%38 = OpAccessChain %_ptr_Workgroup_v4half %w %uint_1
%39 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_0
%40 = OpLoad %v4half %39 None
%41 = OpVectorShuffle %v4half %40 %40 1 3 0 2
OpStore %38 %41 None
%42 = OpAccessChain %_ptr_Workgroup_v4half %w %uint_0
%43 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_1
%44 = OpAccessChain %_ptr_Uniform_half %43 %uint_0
%46 = OpLoad %half %44 None
%47 = OpAccessChain %_ptr_Workgroup_half %42 %uint_1
OpStore %47 %46 None
OpReturn
OpFunctionEnd
%f = OpFunction %void None %51
%52 = OpLabel
%53 = OpLoad %uint %f_local_invocation_index_Input None
%54 = OpFunctionCall %void %f_inner %53
OpReturn
OpFunctionEnd