mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Move hwInfoConfig ownership to RootDeviceEnvironment 2/n
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Use RootDeviceEnvironment getHelper<ProductHelper> for - adjustSamplerState - adjustPlatformForProductFamily.
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
77b6918f30
commit
4aa1697e3c
@@ -39,6 +39,15 @@ void HwInfoConfigTestWindows::TearDown() {
|
||||
HwInfoConfigTest::TearDown();
|
||||
}
|
||||
|
||||
template <typename HelperType>
|
||||
HelperType &HwInfoConfigTestWindows::getHelper() const {
|
||||
auto &helper = rootDeviceEnvironment->getHelper<HelperType>();
|
||||
return helper;
|
||||
}
|
||||
|
||||
template ProductHelper &HwInfoConfigTestWindows::getHelper() const;
|
||||
template CoreHelper &HwInfoConfigTestWindows::getHelper() const;
|
||||
|
||||
TEST_F(HwInfoConfigTestWindows, givenCorrectParametersWhenConfiguringHwInfoThenReturnSuccess) {
|
||||
int ret = hwConfig.configureHwInfoWddm(&pInHwInfo, &outHwInfo, osInterface.get());
|
||||
EXPECT_EQ(0, ret);
|
||||
|
||||
@@ -29,6 +29,9 @@ struct HwInfoConfigTestWindows : public HwInfoConfigTest {
|
||||
MockHwInfoConfigHw<IGFX_UNKNOWN> hwConfig;
|
||||
std::unique_ptr<MockExecutionEnvironment> executionEnvironment;
|
||||
std::unique_ptr<RootDeviceEnvironment> rootDeviceEnvironment;
|
||||
|
||||
template <typename HelperType>
|
||||
HelperType &getHelper() const;
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user