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:
parent
b45ffdb334
commit
9016772351
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue