mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Refactor memory info
Related-To: NEO-6149 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c81c57ec71
commit
d61741dd9f
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user