| ; 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_c857d1 "subgroupMatrixLoad_c857d1" |
| 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_float_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 |
| %float = OpTypeFloat 32 |
| %uint = OpTypeInt 32 0 |
| %uint_1024 = OpConstant %uint 1024 |
| %_arr_float_uint_1024 = OpTypeArray %float %uint_1024 |
| %prevent_dce_block_tint_explicit_layout = OpTypeStruct %_arr_float_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 |
| %uint_64 = OpConstant %uint 64 |
| %_arr_float_uint_64 = OpTypeArray %float %uint_64 |
| %_ptr_Workgroup__arr_float_uint_64 = OpTypePointer Workgroup %_arr_float_uint_64 |
| %arg_0 = OpVariable %_ptr_Workgroup__arr_float_uint_64 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_2 = OpConstant %uint 2 |
| %15 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_2 |
| %19 = OpTypeFunction %15 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Workgroup_float = OpTypePointer Workgroup %float |
| %_ptr_Function_15 = OpTypePointer Function %15 |
| %void = OpTypeVoid |
| %36 = OpTypeFunction %void %uint |
| %uint_24840 = OpConstant %uint 24840 |
| %_ptr_StorageBuffer__arr_float_uint_1024 = OpTypePointer StorageBuffer %_arr_float_uint_1024 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %bool = OpTypeBool |
| %float_0 = OpConstant %float 0 |
| %61 = OpTypeFunction %void |
| %subgroupMatrixLoad_c857d1 = OpFunction %15 None %19 |
| %20 = OpLabel |
| %arg_1 = OpVariable %_ptr_Function_uint Function |
| %arg_3 = OpVariable %_ptr_Function_uint Function |
| %res = OpVariable %_ptr_Function_15 Function |
| OpStore %arg_1 %uint_1 |
| OpStore %arg_3 %uint_1 |
| %25 = OpLoad %uint %arg_1 None |
| %26 = OpLoad %uint %arg_3 None |
| %27 = OpAccessChain %_ptr_Workgroup_float %arg_0 %25 |
| %29 = OpCooperativeMatrixLoadKHR %15 %27 %uint_1 %26 NonPrivatePointer |
| OpStore %res %29 |
| %32 = OpLoad %15 %res None |
| OpReturnValue %32 |
| OpFunctionEnd |
| %compute_main_inner = OpFunction %void None %36 |
| %tint_local_index = OpFunctionParameter %uint |
| %37 = OpLabel |
| OpBranch %38 |
| %38 = OpLabel |
| OpBranch %41 |
| %41 = OpLabel |
| %43 = OpPhi %uint %tint_local_index %38 %44 %40 |
| OpLoopMerge %42 %40 None |
| OpBranch %39 |
| %39 = OpLabel |
| %54 = OpUGreaterThanEqual %bool %43 %uint_64 |
| OpSelectionMerge %56 None |
| OpBranchConditional %54 %57 %56 |
| %57 = OpLabel |
| OpBranch %42 |
| %56 = OpLabel |
| %58 = OpAccessChain %_ptr_Workgroup_float %arg_0 %43 |
| OpStore %58 %float_0 NonPrivatePointer |
| OpBranch %40 |
| %40 = OpLabel |
| %44 = OpIAdd %uint %43 %uint_1 |
| OpBranch %41 |
| %42 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_24840 |
| %47 = OpFunctionCall %15 %subgroupMatrixLoad_c857d1 |
| %48 = OpAccessChain %_ptr_StorageBuffer__arr_float_uint_1024 %1 %uint_0 |
| %51 = OpAccessChain %_ptr_StorageBuffer_float %48 %uint_0 |
| OpCooperativeMatrixStoreKHR %51 %47 %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 |