Commit efbc5caf by Jaebaek Seo

Handle OpenCL.DebugInfo.100 DebugOperation

Bug: b/148401179 Change-Id: I24879b32d65bed5a4380a444bbcaa5794cfd6d85 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/47929 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarJaebaek Seo <jaebaek@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 49537129
...@@ -1394,6 +1394,15 @@ void SpirvShader::Impl::Debugger::process(const SpirvShader *shader, const InsnI ...@@ -1394,6 +1394,15 @@ void SpirvShader::Impl::Debugger::process(const SpirvShader *shader, const InsnI
} }
}); });
break; break;
case OpenCLDebugInfo100DebugOperation:
defineOrEmit(insn, pass, [&](debug::Operation *operation) {
operation->opcode = insn.word(5);
for(uint32_t i = 6; i < insn.wordCount(); i++)
{
operation->operands.push_back(insn.word(i));
}
});
break;
case OpenCLDebugInfo100DebugTypePointer: case OpenCLDebugInfo100DebugTypePointer:
case OpenCLDebugInfo100DebugTypeQualifier: case OpenCLDebugInfo100DebugTypeQualifier:
...@@ -1406,7 +1415,6 @@ void SpirvShader::Impl::Debugger::process(const SpirvShader *shader, const InsnI ...@@ -1406,7 +1415,6 @@ void SpirvShader::Impl::Debugger::process(const SpirvShader *shader, const InsnI
case OpenCLDebugInfo100DebugFunctionDeclaration: case OpenCLDebugInfo100DebugFunctionDeclaration:
case OpenCLDebugInfo100DebugLexicalBlockDiscriminator: case OpenCLDebugInfo100DebugLexicalBlockDiscriminator:
case OpenCLDebugInfo100DebugInlinedVariable: case OpenCLDebugInfo100DebugInlinedVariable:
case OpenCLDebugInfo100DebugOperation:
case OpenCLDebugInfo100DebugMacroDef: case OpenCLDebugInfo100DebugMacroDef:
case OpenCLDebugInfo100DebugMacroUndef: case OpenCLDebugInfo100DebugMacroUndef:
case OpenCLDebugInfo100DebugImportedEntity: case OpenCLDebugInfo100DebugImportedEntity:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment