mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
fix: set correct default value of cacheable flag
Related-To: NEO-9421 Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4885879f3e
commit
a8d9e7ed35
@@ -1404,17 +1404,18 @@ uint64_t Drm::getPatIndex(Gmm *gmm, AllocationType allocationType, CacheRegion c
|
||||
}
|
||||
|
||||
GMM_RESOURCE_INFO *resourceInfo = nullptr;
|
||||
bool cachable = !CacheSettingsHelper::isUncachedType(usageType);
|
||||
auto preferNoCpuAccess = CacheSettingsHelper::preferNoCpuAccess(usageType, rootDeviceEnvironment);
|
||||
bool cacheable = !preferNoCpuAccess && !isUncachedType;
|
||||
bool compressed = false;
|
||||
|
||||
if (gmm) {
|
||||
resourceInfo = gmm->gmmResourceInfo->peekGmmResourceInfo();
|
||||
usageType = gmm->resourceParams.Usage;
|
||||
compressed = gmm->isCompressionEnabled();
|
||||
cachable = gmm->gmmResourceInfo->getResourceFlags()->Info.Cacheable;
|
||||
cacheable = gmm->gmmResourceInfo->getResourceFlags()->Info.Cacheable;
|
||||
}
|
||||
|
||||
uint64_t patIndex = rootDeviceEnvironment.getGmmClientContext()->cachePolicyGetPATIndex(resourceInfo, usageType, compressed, cachable);
|
||||
uint64_t patIndex = rootDeviceEnvironment.getGmmClientContext()->cachePolicyGetPATIndex(resourceInfo, usageType, compressed, cacheable);
|
||||
patIndex = productHelper.overridePatIndex(isUncachedType, patIndex, allocationType);
|
||||
|
||||
UNRECOVERABLE_IF(patIndex == static_cast<uint64_t>(GMM_PAT_ERROR));
|
||||
|
||||
Reference in New Issue
Block a user