feature: Use zesInit on windows always

Related-To: NEO-15060

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
This commit is contained in:
shubham kumar
2025-07-28 17:30:58 +00:00
committed by Compute-Runtime-Automation
parent f51ef2beae
commit 99ee605410
15 changed files with 58 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,6 +17,7 @@ namespace L0 {
namespace ult {
void SysmanDeviceFixture::SetUp() {
debugManager.flags.EnableSysmanLegacyModeUsingZesInit.set(false);
if (!sysmanUltsEnable) {
GTEST_SKIP();
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -37,6 +37,7 @@ class SysmanDeviceFixture : public DeviceFixture, public SysmanEnabledFixture {
SysmanDeviceImp *pSysmanDeviceImp = nullptr;
OsSysman *pOsSysman = nullptr;
PublicWddmSysmanImp *pWddmSysmanImp = nullptr;
DebugManagerStateRestore restorer;
};
} // namespace ult

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -95,5 +95,12 @@ TEST_F(SysmanDeviceFixture, GivenValidSysmanDeviceImpWhenOsSysmanInitFailsThenUn
delete testOsSysman;
}
TEST_F(SysmanDeviceFixture, GivenValidWddmSysmanImpWhenExternBooleanUseZesInitOnWddmIsTrueThenFalseIsReturned) {
EXPECT_EQ(true, pWddmSysmanImp->isDriverModelSupported());
debugManager.flags.EnableSysmanLegacyModeUsingZesInit.set(true);
EXPECT_EQ(false, pWddmSysmanImp->isDriverModelSupported());
debugManager.flags.EnableSysmanLegacyModeUsingZesInit.set(false);
}
} // namespace ult
} // namespace L0