Refactor memory info

Related-To: NEO-6149


Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2021-09-17 10:59:34 +00:00
committed by Compute-Runtime-Automation
parent c81c57ec71
commit d61741dd9f
9 changed files with 222 additions and 48 deletions

View File

@@ -49,7 +49,7 @@ ze_result_t LinuxMemoryImp::getState(zes_mem_state_t *pState) {
if (!memoryInfo) {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
}
for (auto region : memoryInfo->regions) {
for (auto region : memoryInfo->getDrmRegionInfos()) {
if (region.region.memory_class == I915_MEMORY_CLASS_DEVICE) {
deviceRegions.push_back(region);
}