Set correct allocation after reseting command container

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-07-01 10:40:59 +00:00
committed by Compute-Runtime-Automation
parent 484dea027c
commit 7ee9d279c8
2 changed files with 41 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ void CommandContainer::reset() {
commandStream->replaceBuffer(cmdBufferAllocations[0]->getUnderlyingBuffer(),
defaultListCmdBufferSize);
commandStream->replaceGraphicsAllocation(cmdBufferAllocations[0]);
addToResidencyContainer(commandStream->getGraphicsAllocation());
for (auto &indirectHeap : indirectHeaps) {