fix: use stored value instead calling virtual method

Related-To: NEO-7828

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-06-15 18:05:12 +00:00
committed by Compute-Runtime-Automation
parent cfa187aec6
commit d276731757

View File

@@ -344,10 +344,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
levelClosed = true;
// if we guard with ppc, flush dc as well to speed up completion latency
if (dispatchFlags.guardCommandBufferWithPipeControl) {
const auto &productHelper = getProductHelper();
if (productHelper.isDcFlushAllowed()) {
dispatchFlags.dcFlush = true;
}
dispatchFlags.dcFlush = this->dcFlushSupport;
}
}