Use static isWorkaroundRequired in flushGpuCache function

Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2022-12-20 13:05:45 +00:00
committed by Compute-Runtime-Automation
parent f318be663d
commit 13474069fb

View File

@@ -19,9 +19,10 @@ inline void flushGpuCache(LinearStream *commandStream, const Range<L3Range> &ran
using L3_FLUSH_EVICTION_POLICY = typename GfxFamily::L3_FLUSH_ADDRESS_RANGE::L3_FLUSH_EVICTION_POLICY;
auto templ = GfxFamily::cmdInitL3ControlWithPostSync;
templ.getBase().setHdcPipelineFlush(true);
auto &gfxCoreHelper = rootDeviceEnvironment.getHelper<GfxCoreHelper>();
auto hwInfo = *rootDeviceEnvironment.getHardwareInfo();
auto isA0Stepping = gfxCoreHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo);
auto &productHelper = rootDeviceEnvironment.getHelper<ProductHelper>();
auto isA0Stepping = GfxCoreHelper::isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo, productHelper);
for (const L3Range *it = &*ranges.begin(), *last = &*ranges.rbegin(), *end = &*ranges.end(); it != end; ++it) {
if ((it == last) && (postSyncAddress != 0)) {