mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "fix: set correct default value of cacheable flag"
This reverts commit a8d9e7ed35.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3bc6ed8424
commit
13db35c35f
@@ -1404,18 +1404,17 @@ uint64_t Drm::getPatIndex(Gmm *gmm, AllocationType allocationType, CacheRegion c
|
||||
}
|
||||
|
||||
GMM_RESOURCE_INFO *resourceInfo = nullptr;
|
||||
auto preferNoCpuAccess = CacheSettingsHelper::preferNoCpuAccess(usageType, rootDeviceEnvironment);
|
||||
bool cacheable = !preferNoCpuAccess && !isUncachedType;
|
||||
bool cachable = !CacheSettingsHelper::isUncachedType(usageType);
|
||||
bool compressed = false;
|
||||
|
||||
if (gmm) {
|
||||
resourceInfo = gmm->gmmResourceInfo->peekGmmResourceInfo();
|
||||
usageType = gmm->resourceParams.Usage;
|
||||
compressed = gmm->isCompressionEnabled();
|
||||
cacheable = gmm->gmmResourceInfo->getResourceFlags()->Info.Cacheable;
|
||||
cachable = gmm->gmmResourceInfo->getResourceFlags()->Info.Cacheable;
|
||||
}
|
||||
|
||||
uint64_t patIndex = rootDeviceEnvironment.getGmmClientContext()->cachePolicyGetPATIndex(resourceInfo, usageType, compressed, cacheable);
|
||||
uint64_t patIndex = rootDeviceEnvironment.getGmmClientContext()->cachePolicyGetPATIndex(resourceInfo, usageType, compressed, cachable);
|
||||
patIndex = productHelper.overridePatIndex(isUncachedType, patIndex, allocationType);
|
||||
|
||||
UNRECOVERABLE_IF(patIndex == static_cast<uint64_t>(GMM_PAT_ERROR));
|
||||
|
||||
Reference in New Issue
Block a user