mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
Do not disable scratch pages when dbgr is enabled
Related-To: NEO-7990 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
79281f4995
commit
1e4c91fb08
@@ -1526,7 +1526,14 @@ int Drm::createDrmVirtualMemory(uint32_t &drmVmId) {
|
||||
ctl.extensions = castToUint64(vmControlExtRegion.get());
|
||||
}
|
||||
|
||||
bool disableScratch = DebugManager.flags.DisableScratchPages.get();
|
||||
bool disableScratch = false;
|
||||
if (rootDeviceEnvironment.executionEnvironment.isDebuggingEnabled()) {
|
||||
disableScratch = false;
|
||||
}
|
||||
if (DebugManager.flags.DisableScratchPages.get() != -1) {
|
||||
disableScratch = DebugManager.flags.DisableScratchPages.get();
|
||||
}
|
||||
|
||||
bool useVmBind = isVmBindAvailable();
|
||||
bool enablePageFault = hasPageFaultSupport() && useVmBind;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user