blob: b29b7c7d8eb093c023d2544bfb39c887a1ccc220 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 65
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
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"
OpMemberName %u_block_std140 2 "inner_2"
OpMemberName %u_block_std140 3 "inner_3"
OpName %u "u"
OpName %w "w"
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
OpMemberDecorate %u_block_std140 2 Offset 16
OpMemberDecorate %u_block_std140 3 Offset 24
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
%v3half = OpTypeVector %half 3
%u_block_std140 = OpTypeStruct %v3half %v3half %v3half %v3half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat4v3half = OpTypeMatrix %v3half 4
%_ptr_Workgroup_mat4v3half = OpTypePointer Workgroup %mat4v3half
%w = OpVariable %_ptr_Workgroup_mat4v3half Workgroup
%12 = OpTypeFunction %mat4v3half
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v3half = OpTypePointer Uniform %v3half
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%void = OpTypeVoid
%34 = OpTypeFunction %void %uint
%39 = OpConstantNull %mat4v3half
%uint_264 = OpConstant %uint 264
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Workgroup_v3half = OpTypePointer Workgroup %v3half
%53 = OpConstantNull %int
%_ptr_Workgroup_half = OpTypePointer Workgroup %half
%56 = OpConstantNull %uint
%_ptr_Uniform_half = OpTypePointer Uniform %half
%60 = OpTypeFunction %void
%load_u_inner = OpFunction %mat4v3half None %12
%14 = OpLabel
%19 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%20 = OpLoad %v3half %19
%23 = OpAccessChain %_ptr_Uniform_v3half %u %uint_1
%24 = OpLoad %v3half %23
%27 = OpAccessChain %_ptr_Uniform_v3half %u %uint_2
%28 = OpLoad %v3half %27
%31 = OpAccessChain %_ptr_Uniform_v3half %u %uint_3
%32 = OpLoad %v3half %31
%33 = OpCompositeConstruct %mat4v3half %20 %24 %28 %32
OpReturnValue %33
OpFunctionEnd
%f_inner = OpFunction %void None %34
%local_invocation_index = OpFunctionParameter %uint
%38 = OpLabel
OpStore %w %39
OpControlBarrier %uint_2 %uint_2 %uint_264
%42 = OpFunctionCall %mat4v3half %load_u_inner
OpStore %w %42
%46 = OpAccessChain %_ptr_Workgroup_v3half %w %int_1
%47 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%48 = OpLoad %v3half %47
OpStore %46 %48
%49 = OpAccessChain %_ptr_Workgroup_v3half %w %int_1
%50 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%51 = OpLoad %v3half %50
%52 = OpVectorShuffle %v3half %51 %51 2 0 1
OpStore %49 %52
%55 = OpAccessChain %_ptr_Workgroup_half %w %53 %int_1
%58 = OpAccessChain %_ptr_Uniform_half %u %uint_1 %56
%59 = OpLoad %half %58
OpStore %55 %59
OpReturn
OpFunctionEnd
%f = OpFunction %void None %60
%62 = OpLabel
%64 = OpLoad %uint %local_invocation_index_1
%63 = OpFunctionCall %void %f_inner %64
OpReturn
OpFunctionEnd