blob: e0082120ba945012c0883a334b95c299b112fea1 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 72
; 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 %tint_zero_workgroup_memory "tint_zero_workgroup_memory"
OpName %local_idx "local_idx"
OpName %compute_main_inner "compute_main_inner"
OpName %local_invocation_index_2 "local_invocation_index_2"
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
%58 = OpTypeFunction %void
%tint_zero_workgroup_memory = OpFunction %void None %13
%local_idx = 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
OpReturn
OpFunctionEnd
%compute_main_inner = OpFunction %void None %13
%local_invocation_index_2 = OpFunctionParameter %uint
%41 = OpLabel
%42 = OpAccessChain %_ptr_Workgroup_int %wg %uint_0
OpStore %42 %21
%43 = OpAccessChain %_ptr_Workgroup_int %wg %uint_1
OpStore %43 %21
%44 = OpAccessChain %_ptr_Workgroup_int %wg %uint_2
OpStore %44 %21
%45 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_0
OpStore %45 %21
%46 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_0
OpStore %46 %21
%49 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_3 %uint_1 %uint_1
OpAtomicStore %49 %uint_2 %uint_0 %6
%50 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_2
OpStore %50 %21
%51 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_1 %uint_3
OpStore %51 %21
%52 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_2
OpStore %52 %21
%53 = OpAccessChain %_ptr_Workgroup_int %wg %uint_3 %uint_3
OpStore %53 %21
OpControlBarrier %uint_2 %uint_2 %uint_264
%57 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_3 %uint_1 %uint_1
OpAtomicStore %57 %uint_2 %uint_0 %uint_1
OpReturn
OpFunctionEnd
%compute_main_1 = OpFunction %void None %58
%60 = OpLabel
%61 = OpLoad %uint %local_invocation_index_1
%62 = OpFunctionCall %void %compute_main_inner %61
OpReturn
OpFunctionEnd
%compute_main_inner_1 = OpFunction %void None %13
%local_invocation_index_1_param = OpFunctionParameter %uint
%65 = OpLabel
%66 = OpFunctionCall %void %tint_zero_workgroup_memory %local_invocation_index_1_param
OpStore %local_invocation_index_1 %local_invocation_index_1_param
%67 = OpFunctionCall %void %compute_main_1
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %58
%69 = OpLabel
%71 = OpLoad %uint %local_invocation_index_1_param_1
%70 = OpFunctionCall %void %compute_main_inner_1 %71
OpReturn
OpFunctionEnd