mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
211cc8552a
commit
1bcceb1071
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user