performance: Optimize heap handling when mitigate dc flush

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-08-29 15:06:54 +00:00
committed by Compute-Runtime-Automation
parent dec502e11b
commit 1a8149e91c
10 changed files with 51 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ bool CacheSettingsHelper::preferNoCpuAccess(GMM_RESOURCE_USAGE_TYPE_ENUM gmmReso
}
GMM_RESOURCE_USAGE_TYPE_ENUM CacheSettingsHelper::getDefaultUsageTypeWithCachingEnabled(AllocationType allocationType, const ProductHelper &productHelper) {
if (productHelper.overridePatAndUsageForDcFlushMitigation(allocationType)) {
if (productHelper.overrideUsageForDcFlushMitigation(allocationType)) {
return getDefaultUsageTypeWithCachingDisabled(allocationType, productHelper);
}