Use latest sent task count for Linux flush stamp

Related-To: NEO-5845

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-07-23 14:11:19 +00:00
committed by Compute-Runtime-Automation
parent 738e62a9ef
commit 566415a1f5
7 changed files with 15 additions and 12 deletions

View File

@@ -32,6 +32,7 @@ class DrmCommandStreamReceiver : public DeviceCommandStreamReceiver<GfxFamily> {
using BaseClass::requiredScratchSize;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::getTagAddress;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::getTagAllocation;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::latestSentTaskCount;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::taskCount;
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiver::useNotifyEnableForPostSync;

View File

@@ -116,7 +116,7 @@ bool DrmCommandStreamReceiver<GfxFamily>::flush(BatchBuffer &batchBuffer, Reside
}
if (isUserFenceWaitActive()) {
this->flushStamp->setStamp(taskCount);
this->flushStamp->setStamp(latestSentTaskCount);
} else {
this->flushStamp->setStamp(bb->peekHandle());
}