blob: 9f756f397e4c51c41506cc51922d3c9595a1601b [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 68
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1_param_1
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %local_invocation_index_1_param_1 "local_invocation_index_1_param_1"
OpName %local_invocation_index_1 "local_invocation_index_1"
OpName %S2_atomic "S2_atomic"
OpMemberName %S2_atomic 0 "x"
OpMemberName %S2_atomic 1 "y"
OpMemberName %S2_atomic 2 "z"
OpMemberName %S2_atomic 3 "a"
OpName %S1_atomic "S1_atomic"
OpMemberName %S1_atomic 0 "x"
OpMemberName %S1_atomic 1 "a"
OpName %S0_atomic "S0_atomic"
OpMemberName %S0_atomic 0 "x"
OpMemberName %S0_atomic 1 "a"
OpMemberName %S0_atomic 2 "y"
OpMemberName %S0_atomic 3 "z"
OpMemberName %S1_atomic 2 "y"
OpMemberName %S1_atomic 3 "z"
OpName %wg "wg"
OpName %compute_main_inner "compute_main_inner"
OpName %local_invocation_index "local_invocation_index"
OpName %compute_main_1 "compute_main_1"
OpName %compute_main_inner_1 "compute_main_inner_1"
OpName %local_invocation_index_1_param "local_invocation_index_1_param"
OpName %compute_main "compute_main"
OpDecorate %local_invocation_index_1_param_1 BuiltIn LocalInvocationIndex
OpMemberDecorate %S2_atomic 0 Offset 0
OpMemberDecorate %S2_atomic 1 Offset 4
OpMemberDecorate %S2_atomic 2 Offset 8
OpMemberDecorate %S2_atomic 3 Offset 12
OpMemberDecorate %S1_atomic 0 Offset 0
OpMemberDecorate %S1_atomic 1 Offset 4
OpMemberDecorate %S0_atomic 0 Offset 0
OpMemberDecorate %S0_atomic 1 Offset 4
OpMemberDecorate %S0_atomic 2 Offset 8
OpMemberDecorate %S0_atomic 3 Offset 12
OpMemberDecorate %S1_atomic 2 Offset 20
OpMemberDecorate %S1_atomic 3 Offset 24
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%local_invocation_index_1_param_1 = OpVariable %_ptr_Input_uint Input
%_ptr_Private_uint = OpTypePointer Private %uint
%6 = OpConstantNull %uint
%local_invocation_index_1 = OpVariable %_ptr_Private_uint Private %6
%int = OpTypeInt 32 1
%S0_atomic = OpTypeStruct %int %uint %int %int
%S1_atomic = OpTypeStruct %int %S0_atomic %int %int
%S2_atomic = OpTypeStruct %int %int %int %S1_atomic
%_ptr_Workgroup_S2_atomic = OpTypePointer Workgroup %S2_atomic
%wg = OpVariable %_ptr_Workgroup_S2_atomic Workgroup
%void = OpTypeVoid
%13 = OpTypeFunction %void %uint
%uint_0 = OpConstant %uint 0
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
%21 = OpConstantNull %int
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%_ptr_Workgroup_uint = OpTypePointer Workgroup %uint
%uint_264 = OpConstant %uint 264
%42 = OpTypeFunction %void
%compute_main_inner = OpFunction %void None %13
%local_invocation_index = OpFunctionParameter %uint
%17 = OpLabel
%20 = OpAccessChain %_ptr_Workgroup_int %wg %uint_0
OpStore %20 %21
%23 = OpAccessChain %_ptr_Workgroup_int %wg %uint_1
OpStore %23 %21
%25 = OpAccessChain %_ptr_Workgroup_int %wg %uint_2
OpStore %25 %21
%27 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_0
OpStore %27 %21
%28 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_0
OpStore %28 %21
%32 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_3 %uint_1 %uint_1
OpAtomicStore %32 %uint_2 %uint_0 %6
%33 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_2
OpStore %33 %21
%34 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_3
OpStore %34 %21
%35 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_2
OpStore %35 %21
%36 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_3
OpStore %36 %21
OpControlBarrier %uint_2 %uint_2 %uint_264
%41 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_3 %uint_1 %uint_1
OpAtomicStore %41 %uint_2 %uint_0 %uint_1
OpReturn
OpFunctionEnd
%compute_main_1 = OpFunction %void None %42
%44 = OpLabel
%45 = OpLoad %uint %local_invocation_index_1
%46 = OpFunctionCall %void %compute_main_inner %45
OpReturn
OpFunctionEnd
%compute_main_inner_1 = OpFunction %void None %13
%local_invocation_index_1_param = OpFunctionParameter %uint
%49 = OpLabel
%50 = OpAccessChain %_ptr_Workgroup_int %wg %uint_0
OpStore %50 %21
%51 = OpAccessChain %_ptr_Workgroup_int %wg %uint_1
OpStore %51 %21
%52 = OpAccessChain %_ptr_Workgroup_int %wg %uint_2
OpStore %52 %21
%53 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_0
OpStore %53 %21
%54 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_0
OpStore %54 %21
%57 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_3 %uint_1 %uint_1
OpAtomicStore %57 %uint_2 %uint_0 %6
%58 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_2
OpStore %58 %21
%59 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_3
OpStore %59 %21
%60 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_2
OpStore %60 %21
%61 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_3
OpStore %61 %21
OpControlBarrier %uint_2 %uint_2 %uint_264
OpStore %local_invocation_index_1 %local_invocation_index_1_param
%63 = OpFunctionCall %void %compute_main_1
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %42
%65 = OpLabel
%67 = OpLoad %uint %local_invocation_index_1_param_1
%66 = OpFunctionCall %void %compute_main_inner_1 %67
OpReturn
OpFunctionEnd