Create EngineInfo without MemoryInfo

Allow to create EngineInfo even if memoryInfo is
nullptr.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2022-01-12 15:32:14 +00:00
committed by Compute-Runtime-Automation
parent 71746a2fff
commit 4fc365acca
2 changed files with 5 additions and 5 deletions

View File

@ -957,11 +957,13 @@ bool Drm::queryEngineInfo(bool isSysmanEnabled) {
return false;
}
auto engines = ioctlHelper->translateToEngineCaps(enginesQuery);
auto hwInfo = rootDeviceEnvironment.getMutableHardwareInfo();
auto memInfo = memoryInfo.get();
if (!memInfo) {
return false;
this->engineInfo.reset(new EngineInfo(this, hwInfo, engines));
return true;
}
auto &memoryRegions = memInfo->getDrmRegionInfos();
@ -999,8 +1001,6 @@ bool Drm::queryEngineInfo(bool isSysmanEnabled) {
}
}
auto hwInfo = rootDeviceEnvironment.getMutableHardwareInfo();
if (tileCount == 0u) {
this->engineInfo.reset(new EngineInfo(this, hwInfo, engines));
return true;