mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
4b42b066f8
commit
c0c9ce548a
@@ -354,7 +354,7 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
|
||||
BaseClass::ensureCommandBufferAllocation(commandStream, minimumRequiredSize, additionalAllocationSize);
|
||||
}
|
||||
|
||||
CommandStreamReceiverType getType() override {
|
||||
CommandStreamReceiverType getType() const override {
|
||||
return commandStreamReceiverType;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user