No dynamic allocations on hot calls [2/n]

- Prevent FULL vector copy.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek 2022-04-01 15:37:30 +00:00 committed by Compute-Runtime-Automation
parent b45ffdb334
commit 9016772351
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
for (auto i = 0u; i < numCommandLists; ++i) {
auto commandList = CommandList::fromHandle(phCommandLists[i]);
auto cmdBufferAllocations = commandList->commandContainer.getCmdBufferAllocations();
auto &cmdBufferAllocations = commandList->commandContainer.getCmdBufferAllocations();
auto cmdBufferCount = cmdBufferAllocations.size();
auto commandListPreemption = commandList->getCommandListPreemptionMode();