mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Revert "fix: Restore main command stream when reset cmd list"
This reverts commit dc1b60c8e7.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9568ee47e7
commit
89b3e7209d
@@ -930,11 +930,6 @@ HWTEST2_F(CommandListCreate, givenSecondaryCommandStreamForImmediateCmdListWhenC
|
||||
|
||||
EXPECT_EQ(commandList->getCmdContainer().getCommandStream(), secondaryCmdStream);
|
||||
EXPECT_TRUE(MemoryPoolHelper::isSystemMemoryPool(commandList->getCmdContainer().getCommandStream()->getGraphicsAllocation()->getMemoryPool()));
|
||||
|
||||
commandList->reset();
|
||||
|
||||
EXPECT_FALSE(MemoryPoolHelper::isSystemMemoryPool(commandList->getCmdContainer().getCommandStream()->getGraphicsAllocation()->getMemoryPool()));
|
||||
EXPECT_TRUE(MemoryPoolHelper::isSystemMemoryPool(reinterpret_cast<CmdContainerMock *>(&commandList->getCmdContainer())->secondaryCommandStreamForImmediateCmdList->getGraphicsAllocation()->getMemoryPool()));
|
||||
}
|
||||
|
||||
HWTEST2_F(CommandListCreate, givenNoSecondaryCommandStreamForImmediateCmdListWhenCheckAvailableSpaceThenNotSwapCommandStreams, IsAtLeastSkl) {
|
||||
|
||||
@@ -198,9 +198,6 @@ void CommandContainer::reset() {
|
||||
this->handleCmdBufferAllocations(1u);
|
||||
cmdBufferAllocations.erase(cmdBufferAllocations.begin() + 1, cmdBufferAllocations.end());
|
||||
|
||||
if (this->useSecondaryCommandStream && NEO::MemoryPoolHelper::isSystemMemoryPool(this->getCommandStream()->getGraphicsAllocation()->getMemoryPool())) {
|
||||
this->commandStream.swap(this->secondaryCommandStreamForImmediateCmdList);
|
||||
}
|
||||
setCmdBuffer(cmdBufferAllocations[0]);
|
||||
|
||||
for (uint32_t i = 0; i < IndirectHeap::Type::numTypes; i++) {
|
||||
|
||||
Reference in New Issue
Block a user