blob: 194e1805076c41a9a9b84b07650233e64ed97c4e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 34
; Schema: 0
OpCapability Shader
OpCapability VulkanMemoryModel
OpCapability VulkanMemoryModelDeviceScope
OpCapability Float16
OpCapability StorageBuffer16BitAccess
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"
OpName %subgroupMatrixScalarAdd_ee2a47 "subgroupMatrixScalarAdd_ee2a47"
OpName %res "res"
OpName %compute_main "compute_main"
OpDecorate %_arr_half_uint_1024 ArrayStride 2
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
%half = OpTypeFloat 16
%uint = OpTypeInt 32 0
%uint_1024 = OpConstant %uint 1024
%_arr_half_uint_1024 = OpTypeArray %half %uint_1024
%prevent_dce_block_tint_explicit_layout = OpTypeStruct %_arr_half_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_3 = OpConstant %uint 3
%uint_8 = OpConstant %uint 8
%uint_2 = OpConstant %uint 2
%9 = OpTypeCooperativeMatrixKHR %half %uint_3 %uint_8 %uint_8 %uint_2
%13 = OpTypeFunction %9
%15 = OpConstantNull %9
%half_0x1p_3 = OpConstant %half 0x1p+3
%_ptr_Function_9 = OpTypePointer Function %9
%void = OpTypeVoid
%24 = OpTypeFunction %void
%_ptr_StorageBuffer__arr_half_uint_1024 = OpTypePointer StorageBuffer %_arr_half_uint_1024
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%uint_64 = OpConstant %uint 64
%subgroupMatrixScalarAdd_ee2a47 = OpFunction %9 None %13
%14 = OpLabel
%res = OpVariable %_ptr_Function_9 Function
%16 = OpCompositeConstruct %9 %half_0x1p_3
%18 = OpFAdd %9 %15 %16
OpStore %res %18
%21 = OpLoad %9 %res None
OpReturnValue %21
OpFunctionEnd
%compute_main = OpFunction %void None %24
%25 = OpLabel
%26 = OpFunctionCall %9 %subgroupMatrixScalarAdd_ee2a47
%27 = OpAccessChain %_ptr_StorageBuffer__arr_half_uint_1024 %1 %uint_0
%30 = OpAccessChain %_ptr_StorageBuffer_half %27 %uint_0
OpCooperativeMatrixStoreKHR %30 %26 %uint_0 %uint_64 NonPrivatePointer
OpReturn
OpFunctionEnd