mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
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:
committed by
Compute-Runtime-Automation
parent
571e0f2ba3
commit
f8be8414ac
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user