From 6eae5db63e1f463c260b34d78f44826e82bc467c Mon Sep 17 00:00:00 2001 From: "Baj, Tomasz" Date: Tue, 3 Oct 2023 15:57:01 +0000 Subject: [PATCH] test: add setRcsExposure to test Related-To: NEO-8296 Signed-off-by: Baj, Tomasz --- opencl/test/unit_test/windows/get_devices_tests.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/opencl/test/unit_test/windows/get_devices_tests.cpp b/opencl/test/unit_test/windows/get_devices_tests.cpp index 1e7393d7a9..066b365a2f 100644 --- a/opencl/test/unit_test/windows/get_devices_tests.cpp +++ b/opencl/test/unit_test/windows/get_devices_tests.cpp @@ -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; }