Move ClCoreHelper ownership to RootDeviceEnvironment 4/n

Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>

Use RootDeviceEnvironment getHelper<ClCoreHelper> for
- isSupportedKernelThreadArbitrationPolicy
- getSupportedThreadArbitrationPolicies
This commit is contained in:
Kamil Kopryk
2022-11-15 12:33:37 +00:00
committed by Compute-Runtime-Automation
parent 6648adef15
commit 0e47bcde1d
6 changed files with 36 additions and 38 deletions

View File

@@ -381,8 +381,8 @@ void ClDevice::initializeCaps() {
getQueueFamilyName(properties.name, engineGroup.engineGroupType);
deviceInfo.queueFamilyProperties.push_back(properties);
}
auto &clHwHelper = NEO::ClHwHelper::get(hwInfo.platform.eRenderCoreFamily);
const std::vector<uint32_t> &supportedThreadArbitrationPolicies = clHwHelper.getSupportedThreadArbitrationPolicies();
auto &clCoreHelper = this->getRootDeviceEnvironment().getHelper<ClCoreHelper>();
const std::vector<uint32_t> &supportedThreadArbitrationPolicies = clCoreHelper.getSupportedThreadArbitrationPolicies();
deviceInfo.supportedThreadArbitrationPolicies.resize(supportedThreadArbitrationPolicies.size());
for (size_t policy = 0u; policy < supportedThreadArbitrationPolicies.size(); policy++) {
deviceInfo.supportedThreadArbitrationPolicies[policy] = supportedThreadArbitrationPolicies[policy];