mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +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
@@ -42,6 +42,8 @@ Gmm::Gmm(GmmHelper *gmmHelper, const void *alignedPtr, size_t alignedSize, size_
|
||||
|
||||
this->preferNoCpuAccess = CacheSettingsHelper::preferNoCpuAccess(gmmResourceUsage, gmmHelper->getRootDeviceEnvironment());
|
||||
bool cacheable = !this->preferNoCpuAccess && !CacheSettingsHelper::isUncachedType(gmmResourceUsage);
|
||||
|
||||
gmmRequirements.overriderPreferNoCpuAccess.doOverride(this->preferNoCpuAccess);
|
||||
gmmRequirements.overriderCacheable.doOverride(cacheable);
|
||||
resourceParams.Flags.Info.Cacheable = cacheable;
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ struct GmmRequirements {
|
||||
bool preferCompressed;
|
||||
bool allowLargePages;
|
||||
Overrider<bool> overriderCacheable;
|
||||
Overrider<bool> overriderPreferNoCpuAccess;
|
||||
};
|
||||
|
||||
class Gmm {
|
||||
|
||||
Reference in New Issue
Block a user