Skip to content

Commit 2981719

Browse files
authored
Merge pull request KhronosGroup#250 from kpet/clspv-reflection-subgroups
Add SpecConstantSubgroupMaxSize to the clspv reflection non-semantic instruction set
2 parents 1380cbb + 43d173b commit 2981719

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

include/spirv/unified1/NonSemanticClspvReflection.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
#endif
3434

3535
enum {
36-
NonSemanticClspvReflectionRevision = 1,
36+
NonSemanticClspvReflectionRevision = 2,
3737
NonSemanticClspvReflectionRevision_BitWidthPadding = 0x7fffffff
3838
};
3939

@@ -62,6 +62,7 @@ enum NonSemanticClspvReflectionInstructions {
6262
NonSemanticClspvReflectionConstantDataUniform = 22,
6363
NonSemanticClspvReflectionLiteralSampler = 23,
6464
NonSemanticClspvReflectionPropertyRequiredWorkgroupSize = 24,
65+
NonSemanticClspvReflectionSpecConstantSubgroupMaxSize = 25,
6566
NonSemanticClspvReflectionInstructionsMax = 0x7fffffff
6667
};
6768

include/spirv/unified1/extinst.nonsemantic.clspvreflection.grammar.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"revision" : 1,
2+
"revision" : 2,
33
"instructions" : [
44
{
55
"opname" : "Kernel",
@@ -232,6 +232,13 @@
232232
{ "kind" : "IdRef", "name" : "Y" },
233233
{ "kind" : "IdRef", "name" : "Z" }
234234
]
235+
},
236+
{
237+
"opname" : "SpecConstantSubgroupMaxSize",
238+
"opcode" : 25,
239+
"operands" : [
240+
{ "kind" : "IdRef", "name" : "Size" }
241+
]
235242
}
236243
]
237244
}

0 commit comments

Comments
 (0)