mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
refactor: remove ReturnSubDevicesAsApiDevices from shared code
Related-To: NEO-9437 Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
12b4a9f71d
commit
c49a9b9787
@@ -41,24 +41,6 @@ TEST(ExecutionEnvironment, givenDefaultConstructorWhenItIsCalledThenExecutionEnv
|
||||
EXPECT_EQ(0, environment.getRefApiCount());
|
||||
}
|
||||
|
||||
TEST(ExecutionEnvironment, givenDefaultConstructoWhenItIsCalledAndReturnSubDevicesAsApiDevicesIsSetTrueThenSubDevicesAsDevicesIsTrue) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.ReturnSubDevicesAsApiDevices.set(1);
|
||||
MockExecutionEnvironment environment;
|
||||
environment.rootDeviceEnvironments[0]->setHwInfoAndInitHelpers(defaultHwInfo.get());
|
||||
environment.setDeviceHierarchy(environment.rootDeviceEnvironments[0]->getHelper<GfxCoreHelper>());
|
||||
EXPECT_TRUE(environment.isExposingSubDevicesAsDevices());
|
||||
}
|
||||
|
||||
TEST(ExecutionEnvironment, givenDefaultConstructoWhenItIsCalledAndReturnSubDevicesAsApiDevicesIsSetFalseThenSubDevicesAsDevicesIsFalse) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.ReturnSubDevicesAsApiDevices.set(0);
|
||||
MockExecutionEnvironment environment;
|
||||
environment.rootDeviceEnvironments[0]->setHwInfoAndInitHelpers(defaultHwInfo.get());
|
||||
environment.setDeviceHierarchy(environment.rootDeviceEnvironments[0]->getHelper<GfxCoreHelper>());
|
||||
EXPECT_FALSE(environment.isExposingSubDevicesAsDevices());
|
||||
}
|
||||
|
||||
TEST(ExecutionEnvironment, WhenCreatingDevicesThenThoseDevicesAddRefcountsToExecutionEnvironment) {
|
||||
auto executionEnvironment = new ExecutionEnvironment();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user