Do not create preemption allocation when debugger is used

- preemption alloc should only be needed with MidThread

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-03-18 16:37:51 +00:00
committed by Compute-Runtime-Automation
parent 0897f997d6
commit db1157f729
2 changed files with 1 additions and 34 deletions

View File

@@ -182,8 +182,7 @@ bool Device::createEngine(uint32_t deviceCsrIndex, EngineTypeUsage engineTypeUsa
defaultEngineIndex = deviceCsrIndex;
}
bool debuggingEnabled = getDebugger() != nullptr || isDebuggerActive();
if ((preemptionMode == PreemptionMode::MidThread || debuggingEnabled) && !commandStreamReceiver->createPreemptionAllocation()) {
if (preemptionMode == PreemptionMode::MidThread && !commandStreamReceiver->createPreemptionAllocation()) {
return false;
}