Skip to content

OpBit instructions that require BitInstructions capability from spec is missing #4158

@darkyellow

Description

@darkyellow

OpBitFieldSExtract is an example instruction, that according to the spec

"opname" : "OpBitFieldSExtract",
"class" : "Bit",
"opcode" : 202,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{ "kind" : "IdRef", "name" : "Base" },
{ "kind" : "IdRef", "name" : "Offset" },
{ "kind" : "IdRef", "name" : "Count" }
],
"capabilities" : [ "Shader", "BitInstructions" ],
"version": "1.0"

Requires the BitInstructions capability. This is not present when compiling using glslangValidator, also spirv-val does not raise an issue either

Is this a problem with the spec or is this capability really required in the generated spirv?

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions