mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
fix: Restore main command stream when reset cmd list
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6ffa756457
commit
4106398002
@@ -195,8 +195,18 @@ void CommandContainer::reset() {
|
||||
getDeallocationContainer().clear();
|
||||
sshAllocations.clear();
|
||||
|
||||
this->handleCmdBufferAllocations(1u);
|
||||
cmdBufferAllocations.erase(cmdBufferAllocations.begin() + 1, cmdBufferAllocations.end());
|
||||
auto defaultCmdBuffersCnt = 1u + this->useSecondaryCommandStream;
|
||||
|
||||
this->handleCmdBufferAllocations(defaultCmdBuffersCnt);
|
||||
cmdBufferAllocations.erase(cmdBufferAllocations.begin() + defaultCmdBuffersCnt, cmdBufferAllocations.end());
|
||||
|
||||
if (this->useSecondaryCommandStream) {
|
||||
if (!NEO::MemoryPoolHelper::isSystemMemoryPool(this->getCommandStream()->getGraphicsAllocation()->getMemoryPool())) {
|
||||
this->swapStreams();
|
||||
}
|
||||
setCmdBuffer(cmdBufferAllocations[1]);
|
||||
this->swapStreams();
|
||||
}
|
||||
|
||||
setCmdBuffer(cmdBufferAllocations[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user