blob: 6b8e2db6549d9b30eace08a40751d90568086e77 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 49
; Schema: 0
OpCapability Shader
OpCapability VulkanMemoryModel
OpCapability VulkanMemoryModelDeviceScope
OpCapability CooperativeMatrixKHR
OpCapability Int8
OpExtension "SPV_KHR_vulkan_memory_model"
OpExtension "SPV_KHR_cooperative_matrix"
%31 = 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"
OpName %sb_rw "sb_rw"
OpName %subgroupMatrixStore_e4d013 "subgroupMatrixStore_e4d013"
OpName %arg_1 "arg_1"
OpName %arg_2 "arg_2"
OpName %arg_4 "arg_4"
OpName %compute_main "compute_main"
OpDecorate %_runtimearr_int ArrayStride 4
OpMemberDecorate %SB_RW_tint_explicit_layout 0 Offset 0
OpDecorate %SB_RW_tint_explicit_layout Block
OpDecorate %sb_rw DescriptorSet 0
OpDecorate %sb_rw Binding 0
%int = OpTypeInt 32 1
%_runtimearr_int = OpTypeRuntimeArray %int
%SB_RW_tint_explicit_layout = OpTypeStruct %_runtimearr_int
%_ptr_StorageBuffer_SB_RW_tint_explicit_layout = OpTypePointer StorageBuffer %SB_RW_tint_explicit_layout
%sb_rw = OpVariable %_ptr_StorageBuffer_SB_RW_tint_explicit_layout StorageBuffer
%void = OpTypeVoid
%8 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%_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_2 = OpConstant %uint 2
%15 = OpTypeCooperativeMatrixKHR %char %uint_3 %uint_8 %uint_8 %uint_2
%char_0 = OpConstant %char 0
%14 = OpConstantComposite %15 %char_0
%_ptr_Function_15 = OpTypePointer Function %15
%_ptr_StorageBuffer__runtimearr_int = OpTypePointer StorageBuffer %_runtimearr_int
%uint_0 = OpConstant %uint 0
%uint_4 = OpConstant %uint 4
%uint_7 = OpConstant %uint 7
%bool = OpTypeBool
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%subgroupMatrixStore_e4d013 = OpFunction %void None %8
%9 = OpLabel
%arg_1 = OpVariable %_ptr_Function_uint Function
%arg_2 = OpVariable %_ptr_Function_15 Function
%arg_4 = OpVariable %_ptr_Function_uint Function
OpStore %arg_1 %uint_1
OpStore %arg_2 %14
OpStore %arg_4 %uint_8
%24 = OpAccessChain %_ptr_StorageBuffer__runtimearr_int %sb_rw %uint_0
%27 = OpLoad %uint %arg_1 None
%28 = OpLoad %15 %arg_2 None
%29 = OpLoad %uint %arg_4 None
%30 = OpExtInst %uint %31 UMax %29 %uint_8
%32 = OpArrayLength %uint %sb_rw 0
%33 = OpIMul %uint %32 %uint_4
%35 = OpIMul %uint %30 %uint_7
%37 = OpIAdd %uint %27 %35
%38 = OpIAdd %uint %37 %uint_8
%39 = OpULessThanEqual %bool %38 %33
OpSelectionMerge %41 None
OpBranchConditional %39 %42 %41
%42 = OpLabel
%43 = OpAccessChain %_ptr_StorageBuffer_int %24 %27
OpCooperativeMatrixStoreKHR %43 %28 %uint_1 %30 NonPrivatePointer
OpBranch %41
%41 = OpLabel
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %8
%47 = OpLabel
%48 = OpFunctionCall %void %subgroupMatrixStore_e4d013
OpReturn
OpFunctionEnd