performance: remove extra loop processing command lists in execute call

Related-To: NEO-7828

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz 2023-09-19 16:32:54 +00:00 committed by Compute-Runtime-Automation
parent 9da60d8e07
commit 453d01efb2
1 changed files with 1 additions and 9 deletions

View File

@ -220,11 +220,6 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandListsRegular(
this->assignCsrTaskCountToFenceIfAvailable(hFence);
this->dispatchTaskCountPostSyncRegular(ctx.isDispatchTaskCountPostSyncRequired, child);
for (auto i = 0u; i < numCommandLists; ++i) {
auto commandList = static_cast<CommandListImp *>(CommandList::fromHandle(commandListHandles[i]));
commandList->storeReferenceTsToMappedEvents(false);
}
auto submitResult = this->prepareAndSubmitBatchBuffer(ctx, child);
this->csr->setPreemptionMode(ctx.statePreemption);
@ -287,10 +282,6 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandListsCopyOnly(
this->programLastCommandListReturnBbStart(child, ctx);
for (auto i = 0u; i < numCommandLists; ++i) {
auto commandList = static_cast<CommandListImp *>(CommandList::fromHandle(phCommandLists[i]));
commandList->storeReferenceTsToMappedEvents(false);
}
this->dispatchTaskCountPostSyncByMiFlushDw(ctx.isDispatchTaskCountPostSyncRequired, child);
this->makeCsrTagAllocationResident();
@ -575,6 +566,7 @@ void CommandQueueHw<gfxCoreFamily>::setupCmdListsAndContextParams(
for (auto i = 0u; i < numCommandLists; i++) {
auto commandList = static_cast<CommandListImp *>(CommandList::fromHandle(phCommandLists[i]));
commandList->setCsr(this->csr);
commandList->storeReferenceTsToMappedEvents(false);
commandList->incRegularCmdListSubmissionCounter();
auto &commandContainer = commandList->getCmdContainer();