aboutsummaryrefslogtreecommitdiff
path: root/SPIRV/disassemble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SPIRV/disassemble.cpp')
-rw-r--r--SPIRV/disassemble.cpp61
1 files changed, 0 insertions, 61 deletions
diff --git a/SPIRV/disassemble.cpp b/SPIRV/disassemble.cpp
index f943fd56..74dd6054 100644
--- a/SPIRV/disassemble.cpp
+++ b/SPIRV/disassemble.cpp
@@ -54,8 +54,6 @@ namespace spv {
#include "GLSL.std.450.h"
#include "GLSL.ext.AMD.h"
#include "GLSL.ext.NV.h"
- #include "GLSL.ext.ARM.h"
- #include "NonSemanticShaderDebugInfo100.h"
}
}
const char* GlslStd450DebugNames[spv::GLSLstd450Count];
@@ -64,7 +62,6 @@ namespace spv {
static const char* GLSLextAMDGetDebugNames(const char*, unsigned);
static const char* GLSLextNVGetDebugNames(const char*, unsigned);
-static const char* NonSemanticShaderDebugInfo100GetDebugNames(unsigned);
static void Kill(std::ostream& out, const char* message)
{
@@ -79,7 +76,6 @@ enum ExtInstSet {
GLSLextNVInst,
OpenCLExtInst,
NonSemanticDebugPrintfExtInst,
- NonSemanticShaderDebugInfo100
};
// Container class for a single instance of a SPIR-V stream, with methods for disassembly.
@@ -505,8 +501,6 @@ void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode,
extInstSet = OpenCLExtInst;
} else if (strcmp("NonSemantic.DebugPrintf", name) == 0) {
extInstSet = NonSemanticDebugPrintfExtInst;
- } else if (strcmp("NonSemantic.Shader.DebugInfo.100", name) == 0) {
- extInstSet = NonSemanticShaderDebugInfo100;
} else if (strcmp(spv::E_SPV_AMD_shader_ballot, name) == 0 ||
strcmp(spv::E_SPV_AMD_shader_trinary_minmax, name) == 0 ||
strcmp(spv::E_SPV_AMD_shader_explicit_vertex_parameter, name) == 0 ||
@@ -532,8 +526,6 @@ void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode,
out << "(" << GLSLextNVGetDebugNames(name, entrypoint) << ")";
} else if (extInstSet == NonSemanticDebugPrintfExtInst) {
out << "(DebugPrintf)";
- } else if (extInstSet == NonSemanticShaderDebugInfo100) {
- out << "(" << NonSemanticShaderDebugInfo100GetDebugNames(entrypoint) << ")";
}
}
break;
@@ -757,59 +749,6 @@ static const char* GLSLextNVGetDebugNames(const char* name, unsigned entrypoint)
return "Bad";
}
-static const char* NonSemanticShaderDebugInfo100GetDebugNames(unsigned entrypoint)
-{
- switch (entrypoint) {
- case NonSemanticShaderDebugInfo100DebugInfoNone: return "DebugInfoNone";
- case NonSemanticShaderDebugInfo100DebugCompilationUnit: return "DebugCompilationUnit";
- case NonSemanticShaderDebugInfo100DebugTypeBasic: return "DebugTypeBasic";
- case NonSemanticShaderDebugInfo100DebugTypePointer: return "DebugTypePointer";
- case NonSemanticShaderDebugInfo100DebugTypeQualifier: return "DebugTypeQualifier";
- case NonSemanticShaderDebugInfo100DebugTypeArray: return "DebugTypeArray";
- case NonSemanticShaderDebugInfo100DebugTypeVector: return "DebugTypeVector";
- case NonSemanticShaderDebugInfo100DebugTypedef: return "DebugTypedef";
- case NonSemanticShaderDebugInfo100DebugTypeFunction: return "DebugTypeFunction";
- case NonSemanticShaderDebugInfo100DebugTypeEnum: return "DebugTypeEnum";
- case NonSemanticShaderDebugInfo100DebugTypeComposite: return "DebugTypeComposite";
- case NonSemanticShaderDebugInfo100DebugTypeMember: return "DebugTypeMember";
- case NonSemanticShaderDebugInfo100DebugTypeInheritance: return "DebugTypeInheritance";
- case NonSemanticShaderDebugInfo100DebugTypePtrToMember: return "DebugTypePtrToMember";
- case NonSemanticShaderDebugInfo100DebugTypeTemplate: return "DebugTypeTemplate";
- case NonSemanticShaderDebugInfo100DebugTypeTemplateParameter: return "DebugTypeTemplateParameter";
- case NonSemanticShaderDebugInfo100DebugTypeTemplateTemplateParameter: return "DebugTypeTemplateTemplateParameter";
- case NonSemanticShaderDebugInfo100DebugTypeTemplateParameterPack: return "DebugTypeTemplateParameterPack";
- case NonSemanticShaderDebugInfo100DebugGlobalVariable: return "DebugGlobalVariable";
- case NonSemanticShaderDebugInfo100DebugFunctionDeclaration: return "DebugFunctionDeclaration";
- case NonSemanticShaderDebugInfo100DebugFunction: return "DebugFunction";
- case NonSemanticShaderDebugInfo100DebugLexicalBlock: return "DebugLexicalBlock";
- case NonSemanticShaderDebugInfo100DebugLexicalBlockDiscriminator: return "DebugLexicalBlockDiscriminator";
- case NonSemanticShaderDebugInfo100DebugScope: return "DebugScope";
- case NonSemanticShaderDebugInfo100DebugNoScope: return "DebugNoScope";
- case NonSemanticShaderDebugInfo100DebugInlinedAt: return "DebugInlinedAt";
- case NonSemanticShaderDebugInfo100DebugLocalVariable: return "DebugLocalVariable";
- case NonSemanticShaderDebugInfo100DebugInlinedVariable: return "DebugInlinedVariable";
- case NonSemanticShaderDebugInfo100DebugDeclare: return "DebugDeclare";
- case NonSemanticShaderDebugInfo100DebugValue: return "DebugValue";
- case NonSemanticShaderDebugInfo100DebugOperation: return "DebugOperation";
- case NonSemanticShaderDebugInfo100DebugExpression: return "DebugExpression";
- case NonSemanticShaderDebugInfo100DebugMacroDef: return "DebugMacroDef";
- case NonSemanticShaderDebugInfo100DebugMacroUndef: return "DebugMacroUndef";
- case NonSemanticShaderDebugInfo100DebugImportedEntity: return "DebugImportedEntity";
- case NonSemanticShaderDebugInfo100DebugSource: return "DebugSource";
- case NonSemanticShaderDebugInfo100DebugFunctionDefinition: return "DebugFunctionDefinition";
- case NonSemanticShaderDebugInfo100DebugSourceContinued: return "DebugSourceContinued";
- case NonSemanticShaderDebugInfo100DebugLine: return "DebugLine";
- case NonSemanticShaderDebugInfo100DebugNoLine: return "DebugNoLine";
- case NonSemanticShaderDebugInfo100DebugBuildIdentifier: return "DebugBuildIdentifier";
- case NonSemanticShaderDebugInfo100DebugStoragePath: return "DebugStoragePath";
- case NonSemanticShaderDebugInfo100DebugEntryPoint: return "DebugEntryPoint";
- case NonSemanticShaderDebugInfo100DebugTypeMatrix: return "DebugTypeMatrix";
- default: return "Bad";
- }
-
- return "Bad";
-}
-
void Disassemble(std::ostream& out, const std::vector<unsigned int>& stream)
{
SpirvStream SpirvStream(out, stream);