add support for SPV_KHR_bit_instructions

This commit is contained in:
Ben Ashbaugh 2021-06-23 15:54:12 -07:00
parent f95c3b3761
commit 6553701d39
9 changed files with 18 additions and 4 deletions

View File

@ -2157,7 +2157,7 @@
{ "kind" : "IdRef", "name" : "'Offset'" },
{ "kind" : "IdRef", "name" : "'Count'" }
],
"capabilities" : [ "Shader" ]
"capabilities" : [ "Shader", "BitInstructions" ]
},
{
"opname" : "OpBitFieldSExtract",
@ -2170,7 +2170,7 @@
{ "kind" : "IdRef", "name" : "'Offset'" },
{ "kind" : "IdRef", "name" : "'Count'" }
],
"capabilities" : [ "Shader" ]
"capabilities" : [ "Shader", "BitInstructions" ]
},
{
"opname" : "OpBitFieldUExtract",
@ -2183,7 +2183,7 @@
{ "kind" : "IdRef", "name" : "'Offset'" },
{ "kind" : "IdRef", "name" : "'Count'" }
],
"capabilities" : [ "Shader" ]
"capabilities" : [ "Shader", "BitInstructions" ]
},
{
"opname" : "OpBitReverse",
@ -2194,7 +2194,7 @@
{ "kind" : "IdResult" },
{ "kind" : "IdRef", "name" : "'Base'" }
],
"capabilities" : [ "Shader" ]
"capabilities" : [ "Shader", "BitInstructions" ]
},
{
"opname" : "OpBitCount",
@ -13401,6 +13401,12 @@
"extensions" : [ "SPV_KHR_integer_dot_product" ],
"version" : "None"
},
{
"enumerant" : "BitInstructions",
"value" : 6025,
"extensions" : [ "SPV_KHR_bit_instructions" ],
"version" : "None"
},
{
"enumerant" : "AtomicFloat32AddEXT",
"value" : 6033,

View File

@ -1049,6 +1049,7 @@ namespace Spv
DotProductInput4x8BitKHR = 6017,
DotProductInput4x8BitPackedKHR = 6018,
DotProductKHR = 6019,
BitInstructions = 6025,
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongConstantCompositeINTEL = 6089,

View File

@ -1049,6 +1049,7 @@ typedef enum SpvCapability_ {
SpvCapabilityDotProductInput4x8BitKHR = 6017,
SpvCapabilityDotProductInput4x8BitPackedKHR = 6018,
SpvCapabilityDotProductKHR = 6019,
SpvCapabilityBitInstructions = 6025,
SpvCapabilityAtomicFloat32AddEXT = 6033,
SpvCapabilityAtomicFloat64AddEXT = 6034,
SpvCapabilityLongConstantCompositeINTEL = 6089,

View File

@ -1045,6 +1045,7 @@ enum Capability {
CapabilityDotProductInput4x8BitKHR = 6017,
CapabilityDotProductInput4x8BitPackedKHR = 6018,
CapabilityDotProductKHR = 6019,
CapabilityBitInstructions = 6025,
CapabilityAtomicFloat32AddEXT = 6033,
CapabilityAtomicFloat64AddEXT = 6034,
CapabilityLongConstantCompositeINTEL = 6089,

View File

@ -1045,6 +1045,7 @@ enum class Capability : unsigned {
DotProductInput4x8BitKHR = 6017,
DotProductInput4x8BitPackedKHR = 6018,
DotProductKHR = 6019,
BitInstructions = 6025,
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongConstantCompositeINTEL = 6089,

View File

@ -1032,6 +1032,7 @@
"DotProductInput4x8BitKHR": 6017,
"DotProductInput4x8BitPackedKHR": 6018,
"DotProductKHR": 6019,
"BitInstructions": 6025,
"AtomicFloat32AddEXT": 6033,
"AtomicFloat64AddEXT": 6034,
"LongConstantCompositeINTEL": 6089,

View File

@ -1007,6 +1007,7 @@ spv = {
DotProductInput4x8BitKHR = 6017,
DotProductInput4x8BitPackedKHR = 6018,
DotProductKHR = 6019,
BitInstructions = 6025,
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongConstantCompositeINTEL = 6089,

View File

@ -1007,6 +1007,7 @@ spv = {
'DotProductInput4x8BitKHR' : 6017,
'DotProductInput4x8BitPackedKHR' : 6018,
'DotProductKHR' : 6019,
'BitInstructions' : 6025,
'AtomicFloat32AddEXT' : 6033,
'AtomicFloat64AddEXT' : 6034,
'LongConstantCompositeINTEL' : 6089,

View File

@ -1052,6 +1052,7 @@ enum Capability : uint
DotProductInput4x8BitKHR = 6017,
DotProductInput4x8BitPackedKHR = 6018,
DotProductKHR = 6019,
BitInstructions = 6025,
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongConstantCompositeINTEL = 6089,