summaryrefslogtreecommitdiff
path: root/include/spirv/unified1/spirv.cs
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2023-06-21 17:54:47 +0100
committerKevin Petit <kevin.petit@arm.com>2023-06-21 18:04:36 +0100
commit9b527c0fb60124936d0906d44803bec51a0200fb (patch)
tree1820c7d46aa64a7c1a5c5e672f2a09cc2133a9ad /include/spirv/unified1/spirv.cs
parent10db9d4e194246a020a4148e220837ac7c68cfd9 (diff)
downloadSPIRV-Headers-9b527c0fb60124936d0906d44803bec51a0200fb.tar.gz
SPIRV-Headers-9b527c0fb60124936d0906d44803bec51a0200fb.tar.bz2
SPIRV-Headers-9b527c0fb60124936d0906d44803bec51a0200fb.zip
Add definitions for SPV_KHR_cooperative_matrix
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Diffstat (limited to 'include/spirv/unified1/spirv.cs')
-rw-r--r--include/spirv/unified1/spirv.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/spirv/unified1/spirv.cs b/include/spirv/unified1/spirv.cs
index 2e97182..1e6f0fc 100644
--- a/include/spirv/unified1/spirv.cs
+++ b/include/spirv/unified1/spirv.cs
@@ -1159,6 +1159,7 @@ namespace Spv
DotProduct = 6019,
DotProductKHR = 6019,
RayCullMaskKHR = 6020,
+ CooperativeMatrixKHR = 6022,
BitInstructions = 6025,
GroupNonUniformRotateKHR = 6026,
AtomicFloat32AddEXT = 6033,
@@ -1280,6 +1281,38 @@ namespace Spv
PackedVectorFormat4x8BitKHR = 0,
}
+ public enum CooperativeMatrixOperandsShift
+ {
+ MatrixASignedComponents = 0,
+ MatrixBSignedComponents = 1,
+ MatrixCSignedComponents = 2,
+ MatrixResultSignedComponents = 3,
+ SaturatingAccumulation = 4,
+ }
+
+ public enum CooperativeMatrixOperandsMask
+ {
+ MaskNone = 0,
+ MatrixASignedComponents = 0x00000001,
+ MatrixBSignedComponents = 0x00000002,
+ MatrixCSignedComponents = 0x00000004,
+ MatrixResultSignedComponents = 0x00000008,
+ SaturatingAccumulation = 0x00000010,
+ }
+
+ public enum CooperativeMatrixLayout
+ {
+ RowMajorKHR = 0,
+ ColumnMajorKHR = 1,
+ }
+
+ public enum CooperativeMatrixUse
+ {
+ MatrixAKHR = 0,
+ MatrixBKHR = 1,
+ MatrixAccumulatorKHR = 2,
+ }
+
public enum Op
{
OpNop = 0,
@@ -1654,6 +1687,11 @@ namespace Spv
OpUDotAccSatKHR = 4454,
OpSUDotAccSat = 4455,
OpSUDotAccSatKHR = 4455,
+ OpTypeCooperativeMatrixKHR = 4456,
+ OpCooperativeMatrixLoadKHR = 4457,
+ OpCooperativeMatrixStoreKHR = 4458,
+ OpCooperativeMatrixMulAddKHR = 4459,
+ OpCooperativeMatrixLengthKHR = 4460,
OpTypeRayQueryKHR = 4472,
OpRayQueryInitializeKHR = 4473,
OpRayQueryTerminateKHR = 4474,