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:
parent
9da60d8e07
commit
453d01efb2
|
@ -220,11 +220,6 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandListsRegular(
|
||||||
this->assignCsrTaskCountToFenceIfAvailable(hFence);
|
this->assignCsrTaskCountToFenceIfAvailable(hFence);
|
||||||
this->dispatchTaskCountPostSyncRegular(ctx.isDispatchTaskCountPostSyncRequired, child);
|
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);
|
auto submitResult = this->prepareAndSubmitBatchBuffer(ctx, child);
|
||||||
|
|
||||||
this->csr->setPreemptionMode(ctx.statePreemption);
|
this->csr->setPreemptionMode(ctx.statePreemption);
|
||||||
|
@ -287,10 +282,6 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandListsCopyOnly(
|
||||||
|
|
||||||
this->programLastCommandListReturnBbStart(child, ctx);
|
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->dispatchTaskCountPostSyncByMiFlushDw(ctx.isDispatchTaskCountPostSyncRequired, child);
|
||||||
|
|
||||||
this->makeCsrTagAllocationResident();
|
this->makeCsrTagAllocationResident();
|
||||||
|
@ -575,6 +566,7 @@ void CommandQueueHw<gfxCoreFamily>::setupCmdListsAndContextParams(
|
||||||
for (auto i = 0u; i < numCommandLists; i++) {
|
for (auto i = 0u; i < numCommandLists; i++) {
|
||||||
auto commandList = static_cast<CommandListImp *>(CommandList::fromHandle(phCommandLists[i]));
|
auto commandList = static_cast<CommandListImp *>(CommandList::fromHandle(phCommandLists[i]));
|
||||||
commandList->setCsr(this->csr);
|
commandList->setCsr(this->csr);
|
||||||
|
commandList->storeReferenceTsToMappedEvents(false);
|
||||||
commandList->incRegularCmdListSubmissionCounter();
|
commandList->incRegularCmdListSubmissionCounter();
|
||||||
|
|
||||||
auto &commandContainer = commandList->getCmdContainer();
|
auto &commandContainer = commandList->getCmdContainer();
|
||||||
|
|
Loading…
Reference in New Issue