mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
fix: Dont enable scratch pages when debugger is on
Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
506db6bd73
commit
18d04b239e
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user