mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Introduce getHelper - common getter for HwInfoConfig and HwHelper
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Added getHelper common getter for hwInfoConfig and hwHelper and use it as CoreHelper(HwHelper) and ProductHelper(HwInfoConfig)
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
eb349484f1
commit
46098e0e17
@@ -55,8 +55,10 @@ struct HwInfoConfigTestLinux : public HwInfoConfigTest {
|
||||
HwInfoConfigTest::TearDown();
|
||||
}
|
||||
|
||||
const HwInfoConfig &getHwInfoConfig() {
|
||||
return executionEnvironment->rootDeviceEnvironments[0]->getHwInfoConfig();
|
||||
template <typename HelperType>
|
||||
HelperType &getHelper() const {
|
||||
auto &helper = executionEnvironment->rootDeviceEnvironments[0]->getHelper<HelperType>();
|
||||
return helper;
|
||||
}
|
||||
|
||||
OSInterface *osInterface;
|
||||
|
||||
Reference in New Issue
Block a user