Don't call source level debugger, when kernel doesn't contain debug info

Change-Id: I0cc0eb35d16fb7f46584781362886aaa44bde3ec
This commit is contained in:
Adam Cetnerowski
2018-11-26 18:35:36 +01:00
committed by sys_ocldev
parent 3b8ff44d55
commit 0a9ea8fbfd
2 changed files with 59 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ bool SourceLevelDebugger::isOptimizationDisabled() const {
}
bool SourceLevelDebugger::notifyKernelDebugData(const KernelInfo *kernelInfo) const {
if (isActive) {
if (isActive && kernelInfo->debugData.vIsa && kernelInfo->debugData.genIsa) {
GfxDbgKernelDebugData kernelDebugData;
kernelDebugData.hDevice = reinterpret_cast<GfxDeviceHandle>(static_cast<uint64_t>(this->deviceHandle));
kernelDebugData.version = IGFXDBG_CURRENT_VERSION;