mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: correct setting hw info in drm flow
firstly, setup hw info using product specific functions secondly, query system info from GuC to setup max values then, query memory info then, query engine info as it depends on memory info then, query topology as it depends on engine info Related-To: NEO-12073 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ebcbbcf8fe
commit
0cdfa882eb
@@ -145,6 +145,7 @@ TEST(DebugSessionLinuxi915Test, WhenConvertingThreadIDsForDeviceWithSingleSliceT
|
||||
mockDrm->disableSomeTopology = true;
|
||||
|
||||
NEO::DrmQueryTopologyData topologyData = {};
|
||||
mockDrm->engineInfoQueried = true;
|
||||
mockDrm->queryTopology(neoDevice->getHardwareInfo(), topologyData);
|
||||
|
||||
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface.reset(new NEO::OSInterface);
|
||||
@@ -190,6 +191,7 @@ TEST(DebugSessionLinuxi915Test, WhenConvertingThreadIDsForDeviceWithMultipleSlic
|
||||
mockDrm->disableSomeTopology = true;
|
||||
|
||||
NEO::DrmQueryTopologyData topologyData = {};
|
||||
mockDrm->engineInfoQueried = true;
|
||||
mockDrm->queryTopology(neoDevice->getHardwareInfo(), topologyData);
|
||||
|
||||
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface.reset(new NEO::OSInterface);
|
||||
@@ -233,6 +235,7 @@ TEST(DebugSessionLinuxi915Test, GivenDeviceWithSingleSliceWhenCallingAreRequeste
|
||||
mockDrm->storedEUVal = hwInfo.gtSystemInfo.EUCount;
|
||||
|
||||
NEO::DrmQueryTopologyData topologyData = {};
|
||||
mockDrm->engineInfoQueried = true;
|
||||
mockDrm->queryTopology(neoDevice->getHardwareInfo(), topologyData);
|
||||
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface.reset(new NEO::OSInterface);
|
||||
neoDevice->executionEnvironment->rootDeviceEnvironments[0]->osInterface->setDriverModel(std::unique_ptr<DriverModel>(mockDrm));
|
||||
|
||||
Reference in New Issue
Block a user