Validate level zero events in TBX mode

Related-To: NEO-7545

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-11-25 16:51:17 +00:00
committed by Compute-Runtime-Automation
parent 4b42b066f8
commit c0c9ce548a
23 changed files with 378 additions and 34 deletions

View File

@@ -354,7 +354,7 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
BaseClass::ensureCommandBufferAllocation(commandStream, minimumRequiredSize, additionalAllocationSize);
}
CommandStreamReceiverType getType() override {
CommandStreamReceiverType getType() const override {
return commandStreamReceiverType;
}

View File

@@ -121,7 +121,7 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
TaskCountType flushBcsTask(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking, bool profilingEnabled, Device &device) override { return taskCount; };
CommandStreamReceiverType getType() override {
CommandStreamReceiverType getType() const override {
return commandStreamReceiverType;
}

View File

@@ -86,7 +86,7 @@ class MockCsrAub : public MockCsrBase<GfxFamily> {
uint32_t rootDeviceIndex,
const DeviceBitfield deviceBitfield)
: MockCsrBase<GfxFamily>(execStamp, executionEnvironment, rootDeviceIndex, deviceBitfield) {}
CommandStreamReceiverType getType() override {
CommandStreamReceiverType getType() const override {
return CommandStreamReceiverType::CSR_AUB;
}
};

View File

@@ -2435,4 +2435,23 @@ HWTEST_F(CommandStreamReceiverHwTest, whenFlushTagUpdateThenSetStallingCmdsFlag)
EXPECT_EQ(SubmissionStatus::SUCCESS, ultCsr.flushTagUpdate());
EXPECT_TRUE(ultCsr.latestFlushedBatchBuffer.hasStallingCmds);
}
}
HWTEST_F(CommandStreamReceiverHwTest, givenVariousCsrModeWhenGettingTbxModeThenExpectOnlyWhenModeIsTbxOrTbxWithAub) {
auto &ultCsr = pDevice->getUltCommandStreamReceiver<FamilyType>();
ultCsr.commandStreamReceiverType = CommandStreamReceiverType::CSR_HW;
EXPECT_FALSE(ultCsr.isTbxMode());
ultCsr.commandStreamReceiverType = CommandStreamReceiverType::CSR_HW_WITH_AUB;
EXPECT_FALSE(ultCsr.isTbxMode());
ultCsr.commandStreamReceiverType = CommandStreamReceiverType::CSR_AUB;
EXPECT_FALSE(ultCsr.isTbxMode());
ultCsr.commandStreamReceiverType = CommandStreamReceiverType::CSR_TBX;
EXPECT_TRUE(ultCsr.isTbxMode());
ultCsr.commandStreamReceiverType = CommandStreamReceiverType::CSR_TBX_WITH_AUB;
EXPECT_TRUE(ultCsr.isTbxMode());
}