fix: Dont enable scratch pages when debugger is on

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
Brandon Yates
2025-01-24 21:24:10 +00:00
committed by Compute-Runtime-Automation
parent 506db6bd73
commit 18d04b239e
3 changed files with 23 additions and 21 deletions

View File

@@ -1153,9 +1153,9 @@ void Drm::configureScratchPagePolicy() {
disableScratch = !!debugManager.flags.DisableScratchPages.get();
return;
}
const auto &productHelper = this->getRootDeviceEnvironment().getHelper<ProductHelper>();
disableScratch = (productHelper.isDisableScratchPagesSupported() &&
!rootDeviceEnvironment.executionEnvironment.isDebuggingEnabled());
disableScratch = productHelper.isDisableScratchPagesSupported() || rootDeviceEnvironment.executionEnvironment.isDebuggingEnabled();
}
void Drm::configureGpuFaultCheckThreshold() {