Add SpecConstantSubgroupMaxSize to the clspv reflection non-semantic instruction set
authorKévin Petit <kpet@free.fr>
Sat, 24 Jul 2021 18:12:16 +0000 (19:12 +0100)
committerKévin Petit <kpet@free.fr>
Mon, 25 Oct 2021 17:33:26 +0000 (18:33 +0100)
Signed-off-by: Kévin Petit <kpet@free.fr>
include/spirv/unified1/NonSemanticClspvReflection.h
include/spirv/unified1/extinst.nonsemantic.clspvreflection.grammar.json

index fa7061d..380dc21 100644 (file)
@@ -33,7 +33,7 @@ extern "C" {
 #endif
 
 enum {
-    NonSemanticClspvReflectionRevision = 1,
+    NonSemanticClspvReflectionRevision = 2,
     NonSemanticClspvReflectionRevision_BitWidthPadding = 0x7fffffff
 };
 
@@ -62,6 +62,7 @@ enum NonSemanticClspvReflectionInstructions {
     NonSemanticClspvReflectionConstantDataUniform = 22,
     NonSemanticClspvReflectionLiteralSampler = 23,
     NonSemanticClspvReflectionPropertyRequiredWorkgroupSize = 24,
+    NonSemanticClspvReflectionSpecConstantSubgroupMaxSize = 25,
     NonSemanticClspvReflectionInstructionsMax = 0x7fffffff
 };
 
index 15e5699..3d153e5 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "revision" : 1,
+  "revision" : 2,
   "instructions" : [
     {
       "opname" : "Kernel",
         { "kind" : "IdRef", "name" : "Y" },
         { "kind" : "IdRef", "name" : "Z" }
       ]
+    },
+    {
+      "opname" : "SpecConstantSubgroupMaxSize",
+      "opcode" : 25,
+      "operands" : [
+        { "kind" : "IdRef", "name" : "Size" }
+      ]
     }
   ]
 }