Skip to content

Commit 4183b26

Browse files
authored
ClspvReflection non-sematic: add NormalizedSamplerMaskPushConstant (KhronosGroup#377)
This is needed to implement 3D Image read using unnormalised sampler. Ref google/clspv#1202
1 parent e867c06 commit 4183b26

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-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 = 5,
36+
NonSemanticClspvReflectionRevision = 6,
3737
NonSemanticClspvReflectionRevision_BitWidthPadding = 0x7fffffff
3838
};
3939

@@ -78,6 +78,7 @@ enum NonSemanticClspvReflectionInstructions {
7878
NonSemanticClspvReflectionPrintfInfo = 38,
7979
NonSemanticClspvReflectionPrintfBufferStorageBuffer = 39,
8080
NonSemanticClspvReflectionPrintfBufferPointerPushConstant = 40,
81+
NonSemanticClspvReflectionNormalizedSamplerMaskPushConstant = 41,
8182
NonSemanticClspvReflectionInstructionsMax = 0x7fffffff
8283
};
8384

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"revision" : 5,
2+
"revision" : 6,
33
"instructions" : [
44
{
55
"opname" : "Kernel",
@@ -395,6 +395,16 @@
395395
{ "kind" : "IdRef", "name" : "Size"},
396396
{ "kind" : "IdRef", "name" : "BufferSize"}
397397
]
398+
},
399+
{
400+
"opname" : "NormalizedSamplerMaskPushConstant",
401+
"opcode" : 41,
402+
"operands" : [
403+
{ "kind" : "IdRef", "name" : "Kernel" },
404+
{ "kind" : "IdRef", "name" : "Ordinal" },
405+
{ "kind" : "IdRef", "name" : "Offset" },
406+
{ "kind" : "IdRef", "name" : "Size" }
407+
]
398408
}
399409
],
400410
"operand_kinds" : [

0 commit comments

Comments
 (0)