mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
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:

committed by
Compute-Runtime-Automation

parent
71746a2fff
commit
4fc365acca
@ -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;
|
||||
|
Reference in New Issue
Block a user