fix: don't setup preemption surface when debugger is active

Related-To: NEO-12878
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-10-08 11:48:13 +00:00
committed by Compute-Runtime-Automation
parent 5b2f2f3d83
commit 552930a75f
9 changed files with 18 additions and 17 deletions

View File

@@ -23,8 +23,7 @@ template <typename GfxFamily>
void PreemptionHelper::programCsrBaseAddress(LinearStream &preambleCmdStream, Device &device, const GraphicsAllocation *preemptionCsr) {
bool debuggingEnabled = device.getDebugger() != nullptr;
bool isMidThreadPreemption = device.getPreemptionMode() == PreemptionMode::MidThread;
if (isMidThreadPreemption || debuggingEnabled) {
UNRECOVERABLE_IF(nullptr == preemptionCsr);
if (isMidThreadPreemption && !debuggingEnabled) {
programCsrBaseAddressCmd<GfxFamily>(preambleCmdStream, preemptionCsr);
}