test: add setRcsExposure to test

Related-To: NEO-8296

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
Baj, Tomasz 2023-10-03 15:57:01 +00:00 committed by Compute-Runtime-Automation
parent ec9fa23b2e
commit 6eae5db63e
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}