| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 65 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability VulkanMemoryModel |
| OpCapability VulkanMemoryModelDeviceScope |
| OpCapability CooperativeMatrixKHR |
| OpExtension "SPV_KHR_vulkan_memory_model" |
| OpExtension "SPV_KHR_cooperative_matrix" |
| OpMemoryModel Logical Vulkan |
| OpEntryPoint GLCompute %compute_main "compute_main" %compute_main_local_invocation_index_Input |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpMemberName %prevent_dce_block_tint_explicit_layout 0 "inner" |
| OpName %prevent_dce_block_tint_explicit_layout "prevent_dce_block_tint_explicit_layout" |
| OpName %arg_0 "arg_0" |
| OpName %compute_main_local_invocation_index_Input "compute_main_local_invocation_index_Input" |
| OpName %subgroupMatrixLoad_d2c77c "subgroupMatrixLoad_d2c77c" |
| OpName %arg_1 "arg_1" |
| OpName %arg_3 "arg_3" |
| OpName %res "res" |
| OpName %compute_main_inner "compute_main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_int_uint_1024 ArrayStride 4 |
| OpMemberDecorate %prevent_dce_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %prevent_dce_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %compute_main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_1024 = OpConstant %uint 1024 |
| %_arr_int_uint_1024 = OpTypeArray %int %uint_1024 |
| %prevent_dce_block_tint_explicit_layout = OpTypeStruct %_arr_int_uint_1024 |
| %_ptr_StorageBuffer_prevent_dce_block_tint_explicit_layout = OpTypePointer StorageBuffer %prevent_dce_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block_tint_explicit_layout StorageBuffer |
| %_arr_int_uint_1024_0 = OpTypeArray %int %uint_1024 |
| %_ptr_Workgroup__arr_int_uint_1024_0 = OpTypePointer Workgroup %_arr_int_uint_1024_0 |
| %arg_0 = OpVariable %_ptr_Workgroup__arr_int_uint_1024_0 Workgroup |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %compute_main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uint_1 = OpConstant %uint 1 |
| %14 = OpTypeCooperativeMatrixKHR %int %uint_3 %uint_8 %uint_8 %uint_1 |
| %18 = OpTypeFunction %14 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %_ptr_Workgroup_int = OpTypePointer Workgroup %int |
| %_ptr_Function_14 = OpTypePointer Function %14 |
| %void = OpTypeVoid |
| %34 = OpTypeFunction %void %uint |
| %uint_2 = OpConstant %uint 2 |
| %uint_24840 = OpConstant %uint 24840 |
| %_ptr_StorageBuffer__arr_int_uint_1024 = OpTypePointer StorageBuffer %_arr_int_uint_1024 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %uint_64 = OpConstant %uint 64 |
| %bool = OpTypeBool |
| %int_0 = OpConstant %int 0 |
| %61 = OpTypeFunction %void |
| %subgroupMatrixLoad_d2c77c = OpFunction %14 None %18 |
| %19 = OpLabel |
| %arg_1 = OpVariable %_ptr_Function_uint Function |
| %arg_3 = OpVariable %_ptr_Function_uint Function |
| %res = OpVariable %_ptr_Function_14 Function |
| OpStore %arg_1 %uint_1 |
| OpStore %arg_3 %uint_1 |
| %23 = OpLoad %uint %arg_1 None |
| %24 = OpLoad %uint %arg_3 None |
| %25 = OpAccessChain %_ptr_Workgroup_int %arg_0 %23 |
| %27 = OpCooperativeMatrixLoadKHR %14 %25 %uint_1 %24 NonPrivatePointer |
| OpStore %res %27 |
| %30 = OpLoad %14 %res None |
| OpReturnValue %30 |
| OpFunctionEnd |
| %compute_main_inner = OpFunction %void None %34 |
| %tint_local_index = OpFunctionParameter %uint |
| %35 = OpLabel |
| OpBranch %36 |
| %36 = OpLabel |
| OpBranch %39 |
| %39 = OpLabel |
| %41 = OpPhi %uint %tint_local_index %36 %42 %38 |
| OpLoopMerge %40 %38 None |
| OpBranch %37 |
| %37 = OpLabel |
| %54 = OpUGreaterThanEqual %bool %41 %uint_1024 |
| OpSelectionMerge %56 None |
| OpBranchConditional %54 %57 %56 |
| %57 = OpLabel |
| OpBranch %40 |
| %56 = OpLabel |
| %58 = OpAccessChain %_ptr_Workgroup_int %arg_0 %41 |
| OpStore %58 %int_0 NonPrivatePointer |
| OpBranch %38 |
| %38 = OpLabel |
| %42 = OpIAdd %uint %41 %uint_1 |
| OpBranch %39 |
| %40 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_24840 |
| %46 = OpFunctionCall %14 %subgroupMatrixLoad_d2c77c |
| %47 = OpAccessChain %_ptr_StorageBuffer__arr_int_uint_1024 %1 %uint_0 |
| %50 = OpAccessChain %_ptr_StorageBuffer_int %47 %uint_0 |
| OpCooperativeMatrixStoreKHR %50 %46 %uint_0 %uint_64 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %61 |
| %62 = OpLabel |
| %63 = OpLoad %uint %compute_main_local_invocation_index_Input None |
| %64 = OpFunctionCall %void %compute_main_inner %63 |
| OpReturn |
| OpFunctionEnd |