Correct grammar for LocalSizeHintId
authorGraeme Leese <gleese@broadcom.com>
Tue, 20 Jul 2021 09:18:36 +0000 (10:18 +0100)
committerGraeme Leese <gleese@broadcom.com>
Tue, 20 Jul 2021 09:18:36 +0000 (10:18 +0100)
It is described in the spec as being the "same as LocalSizeHint mode,
but using <id> operands instead of literals", but the grammar had a
single <id> operand instead of the 3 literals for LocalSizeHint.

include/spirv/unified1/spirv.core.grammar.json

index 1d19c4a..40982bb 100644 (file)
           "value" : 39,
           "capabilities" : [ "Kernel" ],
           "parameters" : [
-            { "kind" : "IdRef", "name" : "'Local Size Hint'" }
+            { "kind" : "IdRef", "name" : "'x size hint'" },
+            { "kind" : "IdRef", "name" : "'y size hint'" },
+            { "kind" : "IdRef", "name" : "'z size hint'" }
           ],
           "version" : "1.2"
         },