| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 51 |
| ; 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" |
| 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" |
| OpMemberName %SB_RO_tint_explicit_layout 0 "arg_0" |
| OpName %SB_RO_tint_explicit_layout "SB_RO_tint_explicit_layout" |
| OpName %sb_ro "sb_ro" |
| OpName %subgroupMatrixLoad_d80c87 "subgroupMatrixLoad_d80c87" |
| OpName %res "res" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_uint_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 %_runtimearr_uint ArrayStride 4 |
| OpMemberDecorate %SB_RO_tint_explicit_layout 0 Offset 0 |
| OpDecorate %SB_RO_tint_explicit_layout Block |
| OpDecorate %sb_ro DescriptorSet 0 |
| OpDecorate %sb_ro Binding 1 |
| OpDecorate %sb_ro NonWritable |
| %uint = OpTypeInt 32 0 |
| %uint_1024 = OpConstant %uint 1024 |
| %_arr_uint_uint_1024 = OpTypeArray %uint %uint_1024 |
| %prevent_dce_block_tint_explicit_layout = OpTypeStruct %_arr_uint_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 |
| %_runtimearr_uint = OpTypeRuntimeArray %uint |
| %SB_RO_tint_explicit_layout = OpTypeStruct %_runtimearr_uint |
| %_ptr_StorageBuffer_SB_RO_tint_explicit_layout = OpTypePointer StorageBuffer %SB_RO_tint_explicit_layout |
| %sb_ro = OpVariable %_ptr_StorageBuffer_SB_RO_tint_explicit_layout StorageBuffer |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uint_2 = OpConstant %uint 2 |
| %12 = OpTypeCooperativeMatrixKHR %uint %uint_3 %uint_8 %uint_8 %uint_2 |
| %16 = OpTypeFunction %12 |
| %_ptr_StorageBuffer__runtimearr_uint = OpTypePointer StorageBuffer %_runtimearr_uint |
| %uint_0 = OpConstant %uint 0 |
| %uint_7 = OpConstant %uint 7 |
| %uint_1 = OpConstant %uint 1 |
| %bool = OpTypeBool |
| %_ptr_Function_12 = OpTypePointer Function %12 |
| %31 = OpConstantComposite %12 %uint_0 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %void = OpTypeVoid |
| %42 = OpTypeFunction %void |
| %_ptr_StorageBuffer__arr_uint_uint_1024 = OpTypePointer StorageBuffer %_arr_uint_uint_1024 |
| %_ptr_StorageBuffer_uint_0 = OpTypePointer StorageBuffer %uint |
| %uint_64 = OpConstant %uint 64 |
| %subgroupMatrixLoad_d80c87 = OpFunction %12 None %16 |
| %17 = OpLabel |
| %29 = OpVariable %_ptr_Function_12 Function %31 |
| %res = OpVariable %_ptr_Function_12 Function |
| %18 = OpAccessChain %_ptr_StorageBuffer__runtimearr_uint %sb_ro %uint_0 |
| %21 = OpArrayLength %uint %sb_ro 0 |
| %22 = OpIMul %uint %uint_8 %uint_7 |
| %24 = OpIAdd %uint %uint_1 %22 |
| %26 = OpIAdd %uint %24 %uint_8 |
| %27 = OpULessThanEqual %bool %26 %21 |
| OpSelectionMerge %32 None |
| OpBranchConditional %27 %33 %32 |
| %33 = OpLabel |
| %37 = OpAccessChain %_ptr_StorageBuffer_uint %18 %uint_1 |
| %39 = OpCooperativeMatrixLoadKHR %12 %37 %uint_1 %uint_8 NonPrivatePointer |
| OpStore %29 %39 None |
| OpBranch %32 |
| %32 = OpLabel |
| %34 = OpLoad %12 %29 None |
| OpStore %res %34 |
| %36 = OpLoad %12 %res None |
| OpReturnValue %36 |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %42 |
| %43 = OpLabel |
| %44 = OpFunctionCall %12 %subgroupMatrixLoad_d80c87 |
| %45 = OpAccessChain %_ptr_StorageBuffer__arr_uint_uint_1024 %1 %uint_0 |
| %47 = OpAccessChain %_ptr_StorageBuffer_uint_0 %45 %uint_0 |
| OpCooperativeMatrixStoreKHR %47 %44 %uint_0 %uint_64 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |