mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Move ProductHelper ownership to RootDeviceEnvironment
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d7a78db328
commit
104126ddd7
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2022 Intel Corporation
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -45,10 +45,12 @@ HWTEST_F(PrepareDeviceEnvironmentsTests, givenRcsAndCcsNotSupportedWhenInitializ
|
||||
REQUIRE_64BIT_OR_SKIP();
|
||||
|
||||
NEO::ExecutionEnvironment executionEnvironment;
|
||||
executionEnvironment.prepareRootDeviceEnvironments(1u);
|
||||
HardwareInfo hwInfo = *defaultHwInfo;
|
||||
executionEnvironment.rootDeviceEnvironments[0]->setHwInfoAndInitHelpers(defaultHwInfo.get());
|
||||
auto &productHelper = executionEnvironment.rootDeviceEnvironments[0]->getProductHelper();
|
||||
|
||||
auto productHelper = ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
productHelper->configureHardwareCustom(&hwInfo, nullptr);
|
||||
productHelper.configureHardwareCustom(&hwInfo, nullptr);
|
||||
|
||||
bool expectedValue = false;
|
||||
if (hwInfo.featureTable.flags.ftrRcsNode || hwInfo.featureTable.flags.ftrCCSNode) {
|
||||
|
||||
Reference in New Issue
Block a user