Pass compression and cachable params to CachePolicyGetPATIndex query

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2022-09-21 12:49:45 +00:00
committed by Compute-Runtime-Automation
parent 910bffb752
commit 34eabf2960
8 changed files with 69 additions and 21 deletions

View File

@@ -79,4 +79,13 @@ void GmmClientContext::setGmmDeviceInfo(GMM_DEVICE_INFO *deviceInfo) {
clientContext->GmmSetDeviceInfo(deviceInfo);
}
uint32_t GmmClientContext::cachePolicyGetPATIndex(GMM_RESOURCE_INFO *gmmResourceInfo, GMM_RESOURCE_USAGE_TYPE usage, bool compressed, bool cachable) {
bool outValue = compressed;
uint32_t patIndex = clientContext->CachePolicyGetPATIndex(gmmResourceInfo, usage, &outValue, cachable);
DEBUG_BREAK_IF(outValue != compressed);
return patIndex;
}
} // namespace NEO