feature: add support for wait event preamble in append command list

- add mechanism in queue to trigger start command from queue to regular
- add detection in immediate command list need to dispatch extra start in queue
- fix secondary linear stream in immediate case as it should not use container
- modify tests for primary batch buffer dispatch as default mode
- remove invalid or obsolete tests

Related-To: NEO-10356

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2025-03-07 09:52:44 +00:00
committed by Compute-Runtime-Automation
parent 571e0f2ba3
commit f8be8414ac
11 changed files with 111 additions and 101 deletions

View File

@@ -1919,6 +1919,15 @@ TEST_F(CommandContainerTest, givenCmdContainerWhenImmediateCmdListCsrIsSetThenCo
EXPECT_EQ(cmdContainer.getCommandStream()->getCmdContainer(), nullptr);
}
TEST_F(CommandContainerTest, givenCmdContainerWithImmediateCsrWhenCreatingSecondaryCmdBufferThenSecondaryStreamHasCmdContainerSetToNullptr) {
MyMockCommandContainer cmdContainer;
cmdContainer.setImmediateCmdListCsr(pDevice->getDefaultEngine().commandStreamReceiver);
constexpr bool createSecondary = true;
cmdContainer.initialize(pDevice, nullptr, HeapSize::defaultHeapSize, false, createSecondary);
ASSERT_NE(nullptr, cmdContainer.secondaryCommandStreamForImmediateCmdList.get());
EXPECT_EQ(cmdContainer.secondaryCommandStreamForImmediateCmdList->getCmdContainer(), nullptr);
}
TEST_F(CommandContainerTest, givenCmdContainerWhenOldHeapIsStoredAndResetContainerThenUseStorageForReuseForStoredHeap) {
MyMockCommandContainer cmdContainer;