fix: if device hierarchy is flat then getSubDevicesCount return 1u

Related-To: NEO-9167

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
Baj, Tomasz
2023-10-19 09:50:13 +00:00
committed by Compute-Runtime-Automation
parent 67660b44b0
commit cb0bb57f49
43 changed files with 88 additions and 80 deletions

View File

@@ -45,9 +45,6 @@ struct AllocationProperties;
struct HardwareInfo;
struct RootDeviceEnvironment : NonCopyableClass {
protected:
std::unique_ptr<HardwareInfo> hwInfo;
public:
RootDeviceEnvironment(ExecutionEnvironment &executionEnvironment);
MOCKABLE_VIRTUAL ~RootDeviceEnvironment();
@@ -123,6 +120,7 @@ struct RootDeviceEnvironment : NonCopyableClass {
bool isWddmOnLinuxEnable = false;
std::once_flag isDummyAllocationInitialized;
std::unique_ptr<AllocationProperties> dummyBlitProperties;
std::unique_ptr<HardwareInfo> hwInfo;
private:
std::mutex mtx;