mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
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:
committed by
Compute-Runtime-Automation
parent
6b3ad5b3e3
commit
fc508212de
@@ -875,7 +875,6 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
|
||||
bool hasStallingCmds = enqueueProperties.hasStallingCmds || (!relaxedOrderingEnabled && (eventsRequest.numEventsInWaitList > 0 || timestampPacketDependencies.previousEnqueueNodes.peekNodes().size() > 0));
|
||||
|
||||
DispatchFlags dispatchFlags(
|
||||
{}, // csrDependencies
|
||||
×tampPacketDependencies.barrierNodes, // barrierTimestampPacketNodes
|
||||
{}, // pipelineSelectArgs
|
||||
this->flushStamp->getStampReference(), // flushStampReference
|
||||
@@ -1133,7 +1132,6 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueCommandWithoutKernel(
|
||||
|
||||
auto rootDeviceIndex = getDevice().getRootDeviceIndex();
|
||||
DispatchFlags dispatchFlags(
|
||||
{}, // csrDependencies
|
||||
×tampPacketDependencies.barrierNodes, // barrierTimestampPacketNodes
|
||||
{}, // pipelineSelectArgs
|
||||
flushStamp->getStampReference(), // flushStampReference
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user