mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Use static isWorkaroundRequired in flushGpuCache function
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f318be663d
commit
13474069fb
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user