| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 48 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability VulkanMemoryModel |
| OpCapability VulkanMemoryModelDeviceScope |
| OpCapability CooperativeMatrixKHR |
| OpCapability Int8 |
| OpExtension "SPV_KHR_vulkan_memory_model" |
| OpExtension "SPV_KHR_cooperative_matrix" |
| %32 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical Vulkan |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpMemberName %SB_RW_tint_explicit_layout 0 "arg_0" |
| OpName %SB_RW_tint_explicit_layout "SB_RW_tint_explicit_layout" |
| OpMemberName %sb_rw_block_tint_explicit_layout 0 "inner" |
| OpName %sb_rw_block_tint_explicit_layout "sb_rw_block_tint_explicit_layout" |
| OpName %subgroupMatrixStore_f79102 "subgroupMatrixStore_f79102" |
| OpName %arg_1 "arg_1" |
| OpName %arg_2 "arg_2" |
| OpName %arg_4 "arg_4" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_int_uint_1024 ArrayStride 4 |
| OpMemberDecorate %SB_RW_tint_explicit_layout 0 Offset 0 |
| OpMemberDecorate %sb_rw_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %sb_rw_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_1024 = OpConstant %uint 1024 |
| %_arr_int_uint_1024 = OpTypeArray %int %uint_1024 |
| %SB_RW_tint_explicit_layout = OpTypeStruct %_arr_int_uint_1024 |
| %sb_rw_block_tint_explicit_layout = OpTypeStruct %SB_RW_tint_explicit_layout |
| %_ptr_StorageBuffer_sb_rw_block_tint_explicit_layout = OpTypePointer StorageBuffer %sb_rw_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_sb_rw_block_tint_explicit_layout StorageBuffer |
| %void = OpTypeVoid |
| %11 = OpTypeFunction %void |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %uint_1 = OpConstant %uint 1 |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %char = OpTypeInt 8 1 |
| %uint_0 = OpConstant %uint 0 |
| %17 = OpTypeCooperativeMatrixKHR %char %uint_3 %uint_8 %uint_8 %uint_0 |
| %char_0 = OpConstant %char 0 |
| %16 = OpConstantComposite %17 %char_0 |
| %_ptr_Function_17 = OpTypePointer Function %17 |
| %_ptr_StorageBuffer__arr_int_uint_1024 = OpTypePointer StorageBuffer %_arr_int_uint_1024 |
| %uint_7 = OpConstant %uint 7 |
| %uint_4096 = OpConstant %uint 4096 |
| %bool = OpTypeBool |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %subgroupMatrixStore_f79102 = OpFunction %void None %11 |
| %12 = OpLabel |
| %arg_1 = OpVariable %_ptr_Function_uint Function |
| %arg_2 = OpVariable %_ptr_Function_17 Function |
| %arg_4 = OpVariable %_ptr_Function_uint Function |
| OpStore %arg_1 %uint_1 |
| OpStore %arg_2 %16 |
| OpStore %arg_4 %uint_8 |
| %26 = OpAccessChain %_ptr_StorageBuffer__arr_int_uint_1024 %1 %uint_0 %uint_0 |
| %28 = OpLoad %uint %arg_1 None |
| %29 = OpLoad %17 %arg_2 None |
| %30 = OpLoad %uint %arg_4 None |
| %31 = OpExtInst %uint %32 UMax %30 %uint_8 |
| %33 = OpIMul %uint %31 %uint_7 |
| %35 = OpIAdd %uint %28 %33 |
| %36 = OpIAdd %uint %35 %uint_8 |
| %37 = OpULessThanEqual %bool %36 %uint_4096 |
| OpSelectionMerge %40 None |
| OpBranchConditional %37 %41 %40 |
| %41 = OpLabel |
| %42 = OpAccessChain %_ptr_StorageBuffer_int %26 %28 |
| OpCooperativeMatrixStoreKHR %42 %29 %uint_1 %31 NonPrivatePointer |
| OpBranch %40 |
| %40 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %11 |
| %46 = OpLabel |
| %47 = OpFunctionCall %void %subgroupMatrixStore_f79102 |
| OpReturn |
| OpFunctionEnd |