diff --git a/shared/source/helpers/cache_flush.inl b/shared/source/helpers/cache_flush.inl index 805570d236..dfee093e92 100644 --- a/shared/source/helpers/cache_flush.inl +++ b/shared/source/helpers/cache_flush.inl @@ -19,9 +19,10 @@ inline void flushGpuCache(LinearStream *commandStream, const Range &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(); + auto hwInfo = *rootDeviceEnvironment.getHardwareInfo(); - auto isA0Stepping = gfxCoreHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo); + auto &productHelper = rootDeviceEnvironment.getHelper(); + 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)) {