mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +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
@@ -10,6 +10,16 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
template <>
|
||||
bool HwHelperHw<Family>::isFenceAllocationRequired(const HardwareInfo &hwInfo) const {
|
||||
if ((DebugManager.flags.ProgramGlobalFenceAsMiMemFenceCommandInCommandStream.get() == 0) &&
|
||||
(DebugManager.flags.ProgramGlobalFenceAsPostSyncOperationInComputeWalker.get() == 0) &&
|
||||
(DebugManager.flags.ProgramGlobalFenceAsKernelInstructionInEUKernel.get() == 0)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool HwHelperHw<Family>::isCpuImageTransferPreferred(const HardwareInfo &hwInfo) const {
|
||||
return !hwInfo.capabilityTable.supportsImages;
|
||||
|
||||
Reference in New Issue
Block a user