Make command buffers resident at cmd container init

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2023-03-15 13:01:41 +00:00
committed by Compute-Runtime-Automation
parent eff7439eca
commit 79075a3e92
2 changed files with 10 additions and 3 deletions

View File

@@ -95,11 +95,10 @@ CommandContainer::ErrorCode CommandContainer::initialize(Device *device, Allocat
alignedSize - cmdBufferReservedSize, this, gfxCoreHelper.getBatchBufferEndSize());
secondaryCommandStreamForImmediateCmdList->replaceGraphicsAllocation(cmdBufferAllocationHost);
cmdBufferAllocations.push_back(cmdBufferAllocationHost);
addToResidencyContainer(cmdBufferAllocationHost);
}
if (!getFlushTaskUsedForImmediate()) {
addToResidencyContainer(cmdBufferAllocation);
}
addToResidencyContainer(cmdBufferAllocation);
if (requireHeaps) {
size_t heapSize = 65536u;
if (DebugManager.flags.ForceDefaultHeapSize.get() != -1) {