mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
XE_HPC: Fallback path to fix PAT_INDEX programming
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a0371bdfe1
commit
f8ce86b116
@@ -1363,6 +1363,8 @@ uint64_t Drm::getPatIndex(Gmm *gmm, AllocationType allocationType, CacheRegion c
|
||||
return CommonConstants::unsupportedPatIndex;
|
||||
}
|
||||
|
||||
auto &hwHelper = HwHelper::get(hwInfo->platform.eRenderCoreFamily);
|
||||
|
||||
GMM_RESOURCE_INFO *resourceInfo = nullptr;
|
||||
GMM_RESOURCE_USAGE_TYPE usageType = CacheSettingsHelper::getGmmUsageType(allocationType, false, *hwInfo);
|
||||
|
||||
@@ -1377,9 +1379,9 @@ uint64_t Drm::getPatIndex(Gmm *gmm, AllocationType allocationType, CacheRegion c
|
||||
closEnabled = !!DebugManager.flags.ClosEnabled.get();
|
||||
}
|
||||
|
||||
if (patIndex == static_cast<uint64_t>(GMM_PAT_ERROR) || closEnabled) {
|
||||
if (patIndex == static_cast<uint64_t>(GMM_PAT_ERROR) || closEnabled || hwHelper.isPatIndexFallbackWaRequired()) {
|
||||
DEBUG_BREAK_IF(true);
|
||||
patIndex = HwHelper::get(hwInfo->platform.eRenderCoreFamily).getPatIndex(cacheRegion, cachePolicy);
|
||||
patIndex = hwHelper.getPatIndex(cacheRegion, cachePolicy);
|
||||
}
|
||||
|
||||
return patIndex;
|
||||
|
||||
Reference in New Issue
Block a user