test: add setRcsExposure to test
Related-To: NEO-8296 Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
parent
ec9fa23b2e
commit
6eae5db63e
|
@ -41,19 +41,19 @@ HWTEST_F(PrepareDeviceEnvironmentsTests, whenPrepareDeviceEnvironmentsIsCalledTh
|
|||
EXPECT_NE(nullptr, executionEnvironment.rootDeviceEnvironments[0]->getGmmHelper());
|
||||
}
|
||||
|
||||
HWTEST_F(PrepareDeviceEnvironmentsTests, givenCcsNotSupportedWhenInitializingThenReturnFalse) {
|
||||
HWTEST_F(PrepareDeviceEnvironmentsTests, givenRcsAndCcsNotSupportedWhenInitializingThenReturnFalse) {
|
||||
REQUIRE_64BIT_OR_SKIP();
|
||||
|
||||
NEO::ExecutionEnvironment executionEnvironment;
|
||||
executionEnvironment.prepareRootDeviceEnvironments(1u);
|
||||
HardwareInfo hwInfo = *defaultHwInfo;
|
||||
executionEnvironment.rootDeviceEnvironments[0]->setHwInfoAndInitHelpers(defaultHwInfo.get());
|
||||
executionEnvironment.rootDeviceEnvironments[0]->setRcsExposure();
|
||||
auto *hwInfo = executionEnvironment.rootDeviceEnvironments[0]->getMutableHardwareInfo();
|
||||
auto &productHelper = executionEnvironment.rootDeviceEnvironments[0]->getProductHelper();
|
||||
|
||||
productHelper.configureHardwareCustom(&hwInfo, nullptr);
|
||||
productHelper.configureHardwareCustom(hwInfo, nullptr);
|
||||
|
||||
bool expectedValue = false;
|
||||
if (hwInfo.featureTable.flags.ftrCCSNode) {
|
||||
if (hwInfo->featureTable.flags.ftrRcsNode || hwInfo->featureTable.flags.ftrCCSNode) {
|
||||
expectedValue = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue