mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
feature: Use zesInit on windows always
Related-To: NEO-15060 Signed-off-by: shubham kumar <shubham.kumar@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6b37243bfa
commit
cf7a4bc0dd
@@ -55,7 +55,8 @@ Device *WddmSysmanImp::getDeviceHandle() {
|
||||
}
|
||||
|
||||
ze_bool_t WddmSysmanImp::isDriverModelSupported() {
|
||||
return true;
|
||||
auto usingZesInit = NEO::debugManager.flags.EnableSysmanLegacyModeUsingZesInit.get();
|
||||
return !usingZesInit;
|
||||
}
|
||||
|
||||
std::vector<ze_device_handle_t> &WddmSysmanImp::getDeviceHandles() {
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace L0 {
|
||||
namespace ult {
|
||||
|
||||
void SysmanDeviceFixture::SetUp() {
|
||||
debugManager.flags.EnableSysmanLegacyModeUsingZesInit.set(false);
|
||||
if (!sysmanUltsEnable) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ class SysmanDeviceFixture : public DeviceFixture, public SysmanEnabledFixture {
|
||||
SysmanDeviceImp *pSysmanDeviceImp = nullptr;
|
||||
OsSysman *pOsSysman = nullptr;
|
||||
PublicWddmSysmanImp *pWddmSysmanImp = nullptr;
|
||||
DebugManagerStateRestore restorer;
|
||||
};
|
||||
|
||||
} // namespace ult
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user