Skip to content

Commit f96874e

Browse files
committed
Handle more error cases for VirtualContext
1 parent 42add67 commit f96874e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

renderdoc/driver/ihv/amd/amd_isa.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,10 @@ std::string Disassemble(ShaderStage stage, const std::vector<std::string> &glsl,
400400
Process::ProcessResult result = {};
401401
Process::LaunchProcess(vc.c_str(), dirname(vc).c_str(), cmdLine.c_str(), &result);
402402

403-
if(result.retCode != 0 || result.strStdout.find("Error") != string::npos)
403+
if(result.retCode != 0 || result.strStdout.find("Error") != string::npos ||
404+
result.strStdout.empty() || !FileIO::exists(outPath.c_str()))
404405
{
405-
return "; Failed to Disassemble\n\n; " + result.strStdout;
406+
return "; Failed to Disassemble - check AMD driver is currently running\n\n; " + result.strStdout;
406407
}
407408

408409
// remove artifacts we don't need

0 commit comments

Comments
 (0)