Move hwHelper ownership to RootDeviceEnvironment 5/n

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

UseRootDeviceEnvironment getHelper<CoreHelper> for
- isFenceAllocationRequired

Move common implementation to pvc_and_later file.
This commit is contained in:
Kamil Kopryk
2022-11-14 17:52:33 +00:00
committed by Compute-Runtime-Automation
parent 211cc8552a
commit 1bcceb1071
5 changed files with 21 additions and 18 deletions

View File

@@ -722,8 +722,10 @@ bool CommandStreamReceiver::createWorkPartitionAllocation(const Device &device)
}
bool CommandStreamReceiver::createGlobalFenceAllocation() {
auto hwInfo = executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->getHardwareInfo();
if (!HwHelper::get(hwInfo->platform.eRenderCoreFamily).isFenceAllocationRequired(*hwInfo)) {
auto &rootDevicEnvironment = *executionEnvironment.rootDeviceEnvironments[rootDeviceIndex].get();
auto &coreHelper = rootDevicEnvironment.getHelper<CoreHelper>();
auto &hwInfo = *rootDevicEnvironment.getHardwareInfo();
if (!coreHelper.isFenceAllocationRequired(hwInfo)) {
return true;
}