Skip to content

Commit

Permalink
[DebugInfo] Fix instruction enumeration
Browse files Browse the repository at this point in the history
These two opcodes were mistakenly swapped when they were originally
added, at least according to the `DebugInfo`, `OpenCL.DebugInfo.100`,
and `NonSemantic.Shader.DebugInfo.100` extended instruction sets.

This might break existing third-party SPIR-V translators if they are
accommodating this bug, mistakenly or otherwise.
  • Loading branch information
frasercrmck committed Nov 30, 2023
1 parent 3770469 commit 8d98bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SPIRV/libSPIRV/SPIRV.debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ enum Instruction {
TypePtrToMember = 13,
TypeTemplate = 14,
TypeTemplateParameter = 15,
TypeTemplateParameterPack = 16,
TypeTemplateTemplateParameter = 17,
TypeTemplateTemplateParameter = 16,
TypeTemplateParameterPack = 17,
GlobalVariable = 18,
FunctionDeclaration = 19,
Function = 20,
Expand Down

0 comments on commit 8d98bfa

Please sign in to comment.