mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Simplify copy only command list submission.
- Remove not needed code. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5a20eccd59
commit
40c73d5101
@@ -201,9 +201,6 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandListsCopyOnly(
|
||||
|
||||
this->csr->getResidencyAllocations().reserve(ctx.spaceForResidency);
|
||||
|
||||
this->handleScratchSpaceAndUpdateGSBAStateDirtyFlag(ctx);
|
||||
this->setFrontEndStateProperties(ctx);
|
||||
|
||||
linearStreamSizeEstimate += NEO::EncodeMiFlushDW<GfxFamily>::getMiFlushDwCmdSizeForDataWrite();
|
||||
|
||||
NEO::LinearStream child(nullptr);
|
||||
@@ -212,28 +209,20 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandListsCopyOnly(
|
||||
}
|
||||
|
||||
this->allocateGlobalFenceAndMakeItResident();
|
||||
this->allocateWorkPartitionAndMakeItResident();
|
||||
this->allocateTagsManagerHeapsAndMakeThemResidentIfSWTagsEnabled(child);
|
||||
this->csr->programHardwareContext(child);
|
||||
this->makeSbaTrackingBufferResidentIfL0DebuggerEnabled(ctx.isDebugEnabled);
|
||||
|
||||
this->programActivePartitionConfig(ctx.isProgramActivePartitionConfigRequired, child);
|
||||
this->encodeKernelArgsBufferAndMakeItResident();
|
||||
|
||||
this->writeCsrStreamInlineIfLogicalStateHelperAvailable(child);
|
||||
|
||||
for (auto i = 0u; i < numCommandLists; ++i) {
|
||||
auto commandList = CommandList::fromHandle(phCommandLists[i]);
|
||||
|
||||
this->patchCommands(*commandList, this->csr->getScratchSpaceController()->getScratchPatchAddress());
|
||||
this->programOneCmdListBatchBufferStart(commandList, child);
|
||||
this->mergeOneCmdListPipelinedState(commandList);
|
||||
}
|
||||
this->collectPrintfContentsFromAllCommandsLists(phCommandLists, numCommandLists);
|
||||
this->migrateSharedAllocationsIfRequested(ctx.isMigrationRequested, phCommandLists[0]);
|
||||
this->prefetchMemoryIfRequested(ctx.performMemoryPrefetch);
|
||||
|
||||
this->csr->setPreemptionMode(ctx.statePreemption);
|
||||
this->assignCsrTaskCountToFenceIfAvailable(hFence);
|
||||
|
||||
this->dispatchTaskCountPostSyncByMiFlushDw(ctx.isDispatchTaskCountPostSyncRequired, child);
|
||||
|
||||
Reference in New Issue
Block a user