mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Debug flag to override revision
Change-Id: Ie4057baa0fcc6ba9281436fcfd09a75380ca8fd0 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
2b7ce21709
commit
6645cd99e6
@@ -144,6 +144,26 @@ TEST_F(DeviceFactoryTest, givenDebugFlagSetWhenPrepareDeviceEnvironmentsForProdu
|
||||
EXPECT_EQ(maxNBitValue(12), executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo()->capabilityTable.gpuAddressSpace);
|
||||
}
|
||||
|
||||
TEST_F(DeviceFactoryTest, givenDebugFlagSetWhenPrepareDeviceEnvironmentsIsCalledThenOverrideRevision) {
|
||||
DebugManagerStateRestore restore;
|
||||
DebugManager.flags.OverrideRevision.set(3);
|
||||
|
||||
bool success = DeviceFactory::prepareDeviceEnvironments(*executionEnvironment);
|
||||
|
||||
EXPECT_TRUE(success);
|
||||
EXPECT_EQ(3u, executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo()->platform.usRevId);
|
||||
}
|
||||
|
||||
TEST_F(DeviceFactoryTest, givenDebugFlagSetWhenPrepareDeviceEnvironmentsForProductFamilyOverrideIsCalledThenOverrideRevision) {
|
||||
DebugManagerStateRestore restore;
|
||||
DebugManager.flags.OverrideRevision.set(3);
|
||||
|
||||
bool success = DeviceFactory::prepareDeviceEnvironmentsForProductFamilyOverride(*executionEnvironment);
|
||||
|
||||
EXPECT_TRUE(success);
|
||||
EXPECT_EQ(3u, executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo()->platform.usRevId);
|
||||
}
|
||||
|
||||
TEST_F(DeviceFactoryTest, whenPrepareDeviceEnvironmentsIsCalledThenAllRootDeviceEnvironmentMembersAreInitialized) {
|
||||
DebugManagerStateRestore stateRestore;
|
||||
auto requiredDeviceCount = 2u;
|
||||
|
||||
@@ -168,4 +168,5 @@ EnableMultiStorageResources = -1
|
||||
PrintExecutionBuffer = 0
|
||||
EnableCrossDeviceAccess = -1
|
||||
PauseOnBlitCopy = -1
|
||||
ForceImplicitFlush = 0
|
||||
ForceImplicitFlush = 0
|
||||
OverrideRevision = -1
|
||||
Reference in New Issue
Block a user