Skip to content

Commit 60677e2

Browse files
Update latest flushed task count in CSR with AUB dump
Signed-off-by: Lukasz Jobczyk <[email protected]>
1 parent d2a4af9 commit 60677e2

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

opencl/test/unit_test/command_stream/command_stream_receiver_with_aub_dump_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ HWTEST_P(CommandStreamReceiverWithAubDumpTest, givenCommandStreamReceiverWithAub
536536
EXPECT_EQ(1u, csrWithAubDump->peekLatestSentTaskCount());
537537
if (createAubCSR) {
538538
EXPECT_EQ(csrWithAubDump->peekLatestSentTaskCount(), csrWithAubDump->getAubMockCsr().peekLatestSentTaskCount());
539+
EXPECT_EQ(csrWithAubDump->peekLatestSentTaskCount(), csrWithAubDump->getAubMockCsr().peekLatestFlushedTaskCount());
539540
}
540541

541542
memoryManager->freeGraphicsMemoryImpl(commandBuffer);

shared/source/command_stream/command_stream_receiver.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ class CommandStreamReceiver {
214214
void setLatestSentTaskCount(uint32_t latestSentTaskCount) {
215215
this->latestSentTaskCount = latestSentTaskCount;
216216
}
217+
void setLatestFlushedTaskCount(uint32_t latestFlushedTaskCount) {
218+
this->latestFlushedTaskCount = latestFlushedTaskCount;
219+
}
217220

218221
virtual uint32_t blitBuffer(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking, bool profilingEnabled, Device &device) = 0;
219222

shared/source/command_stream/command_stream_receiver_with_aub_dump.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ bool CommandStreamReceiverWithAUBDump<BaseCSR>::flush(BatchBuffer &batchBuffer,
3636
if (aubCSR) {
3737
aubCSR->flush(batchBuffer, allocationsForResidency);
3838
aubCSR->setLatestSentTaskCount(BaseCSR::peekLatestSentTaskCount());
39+
aubCSR->setLatestFlushedTaskCount(BaseCSR::peekLatestSentTaskCount());
3940
}
41+
4042
return BaseCSR::flush(batchBuffer, allocationsForResidency);
4143
}
4244

0 commit comments

Comments
 (0)