mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: Override prefer no cpu access for dc flush mitigation
Related-To: NEO-10556 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f8330b1779
commit
9a2fa1dcb1
@@ -225,6 +225,10 @@ GraphicsAllocation *WddmMemoryManager::allocateGraphicsMemoryUsingKmdAndMapItToC
|
||||
gmmRequirements.overriderCacheable.enableOverride = true;
|
||||
gmmRequirements.overriderCacheable.value = true;
|
||||
}
|
||||
if (productHelper.overrideCacheableForDcFlushMitigation(allocationData.type)) {
|
||||
gmmRequirements.overriderPreferNoCpuAccess.enableOverride = true;
|
||||
gmmRequirements.overriderPreferNoCpuAccess.value = false;
|
||||
}
|
||||
|
||||
auto gmm = new Gmm(executionEnvironment.rootDeviceEnvironments[allocationData.rootDeviceIndex]->getGmmHelper(), nullptr,
|
||||
sizeAligned, 0u,
|
||||
@@ -451,6 +455,10 @@ GraphicsAllocation *WddmMemoryManager::allocateGraphicsMemoryForNonSvmHostPtr(co
|
||||
gmmRequirements.overriderCacheable.enableOverride = true;
|
||||
gmmRequirements.overriderCacheable.value = true;
|
||||
}
|
||||
if (productHelper.overrideCacheableForDcFlushMitigation(allocationData.type)) {
|
||||
gmmRequirements.overriderPreferNoCpuAccess.enableOverride = true;
|
||||
gmmRequirements.overriderPreferNoCpuAccess.value = false;
|
||||
}
|
||||
|
||||
auto gmm = new Gmm(executionEnvironment.rootDeviceEnvironments[allocationData.rootDeviceIndex]->getGmmHelper(), alignedPtr, alignedSize, 0u,
|
||||
CacheSettingsHelper::getGmmUsageType(wddmAllocation->getAllocationType(), !!allocationData.flags.uncacheable, productHelper), {}, gmmRequirements);
|
||||
|
||||
Reference in New Issue
Block a user