mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +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
f51ef2beae
commit
99ee605410
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user