mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
refactor: don't use global gfxCoreHelper getter 7/7
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3d59dce80c
commit
200734892b
@@ -69,7 +69,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueHandler(Surface *(&surfaces)[surfaceCou
|
||||
kernelObjsForAuxTranslation = kernel->fillWithKernelObjsForAuxTranslation();
|
||||
|
||||
if (!kernelObjsForAuxTranslation->empty()) {
|
||||
auxTranslationMode = GfxCoreHelperHw<GfxFamily>::get().getAuxTranslationMode(device->getHardwareInfo());
|
||||
auxTranslationMode = GfxCoreHelperHw<GfxFamily>::getAuxTranslationMode(device->getHardwareInfo());
|
||||
}
|
||||
multiDispatchInfo.setKernelObjsForAuxTranslation(std::move(kernelObjsForAuxTranslation));
|
||||
}
|
||||
@@ -1410,7 +1410,7 @@ template <typename GfxFamily>
|
||||
bool CommandQueueHw<GfxFamily>::isBlitAuxTranslationRequired(const MultiDispatchInfo &multiDispatchInfo) {
|
||||
return multiDispatchInfo.getKernelObjsForAuxTranslation() &&
|
||||
(multiDispatchInfo.getKernelObjsForAuxTranslation()->size() > 0) &&
|
||||
(GfxCoreHelperHw<GfxFamily>::get().getAuxTranslationMode(device->getHardwareInfo()) == AuxTranslationMode::Blit);
|
||||
(GfxCoreHelperHw<GfxFamily>::getAuxTranslationMode(device->getHardwareInfo()) == AuxTranslationMode::Blit);
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -80,8 +80,8 @@ DirectSubmissionHw<GfxFamily, Dispatcher>::DirectSubmissionHw(const DirectSubmis
|
||||
setPostSyncOffset();
|
||||
|
||||
dcFlushRequired = MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable(true, *hwInfo);
|
||||
|
||||
relaxedOrderingEnabled = GfxCoreHelperHw<GfxFamily>::get().isRelaxedOrderingSupported();
|
||||
auto &gfxCoreHelper = inputParams.rootDeviceEnvironment.getHelper<GfxCoreHelper>();
|
||||
relaxedOrderingEnabled = gfxCoreHelper.isRelaxedOrderingSupported();
|
||||
|
||||
if (DebugManager.flags.DirectSubmissionRelaxedOrdering.get() != -1) {
|
||||
relaxedOrderingEnabled = (DebugManager.flags.DirectSubmissionRelaxedOrdering.get() == 1);
|
||||
|
||||
Reference in New Issue
Block a user