refactor: pass big parameters as reference instead of by value

Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-04 08:58:05 +00:00
committed by Compute-Runtime-Automation
parent 6b3ad5b3e3
commit fc508212de
12 changed files with 13 additions and 21 deletions

View File

@@ -875,7 +875,6 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
bool hasStallingCmds = enqueueProperties.hasStallingCmds || (!relaxedOrderingEnabled && (eventsRequest.numEventsInWaitList > 0 || timestampPacketDependencies.previousEnqueueNodes.peekNodes().size() > 0));
DispatchFlags dispatchFlags(
{}, // csrDependencies
&timestampPacketDependencies.barrierNodes, // barrierTimestampPacketNodes
{}, // pipelineSelectArgs
this->flushStamp->getStampReference(), // flushStampReference
@@ -1133,7 +1132,6 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueCommandWithoutKernel(
auto rootDeviceIndex = getDevice().getRootDeviceIndex();
DispatchFlags dispatchFlags(
{}, // csrDependencies
&timestampPacketDependencies.barrierNodes, // barrierTimestampPacketNodes
{}, // pipelineSelectArgs
flushStamp->getStampReference(), // flushStampReference

View File

@@ -53,7 +53,6 @@ CompletionStamp &CommandMapUnmap::submit(TaskCountType taskLevel, bool terminate
Device &device = commandQueue.getDevice();
DispatchFlags dispatchFlags(
{}, // csrDependencies
nullptr, // barrierTimestampPacketNodes
{}, // pipelineSelectArgs
commandQueue.flushStamp->getStampReference(), // flushStampReference
@@ -190,7 +189,6 @@ CompletionStamp &CommandComputeKernel::submit(TaskCountType taskLevel, bool term
auto memoryCompressionState = commandStreamReceiver.getMemoryCompressionState(kernel->isAuxTranslationRequired());
DispatchFlags dispatchFlags(
{}, // csrDependencies
nullptr, // barrierTimestampPacketNodes
{false, kernel->isVmeKernel()}, // pipelineSelectArgs
commandQueue.flushStamp->getStampReference(), // flushStampReference
@@ -367,7 +365,6 @@ CompletionStamp &CommandWithoutKernel::submit(TaskCountType taskLevel, bool term
auto rootDeviceIndex = commandStreamReceiver.getRootDeviceIndex();
DispatchFlags dispatchFlags(
{}, // csrDependencies
barrierNodes, // barrierTimestampPacketNodes
{}, // pipelineSelectArgs
commandQueue.flushStamp->getStampReference(), // flushStampReference