Skip to content

Commit fbc9188

Browse files
Add small performance tweak
Related-To: NEO-5019 Signed-off-by: Zbigniew Zdanowicz <[email protected]>
1 parent 46e0317 commit fbc9188

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

level_zero/core/source/cmdqueue/cmdqueue_hw.inl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,6 @@ void CommandQueueHw<gfxCoreFamily>::programOneCmdListBatchBufferStart(CommandLis
884884

885885
auto &returnPoints = commandList->getReturnPoints();
886886
uint32_t returnPointsSize = commandList->getReturnPointsSize();
887-
uint32_t cmdBufferProgress = 0;
888887
uint32_t returnPointIdx = 0;
889888

890889
for (size_t iter = 0; iter < cmdBufferCount; iter++) {
@@ -896,7 +895,7 @@ void CommandQueueHw<gfxCoreFamily>::programOneCmdListBatchBufferStart(CommandLis
896895
NEO::EncodeBatchBufferStartOrEnd<GfxFamily>::programBatchBufferStart(&cmdStream, startOffset, true);
897896
if (returnPointsSize > 0) {
898897
bool cmdBufferHasRestarts = std::find_if(
899-
std::next(returnPoints.begin(), cmdBufferProgress),
898+
std::next(returnPoints.begin(), returnPointIdx),
900899
returnPoints.end(),
901900
[allocation](CmdListReturnPoint &retPt) {
902901
return retPt.currentCmdBuffer == allocation;
@@ -914,7 +913,6 @@ void CommandQueueHw<gfxCoreFamily>::programOneCmdListBatchBufferStart(CommandLis
914913
true);
915914
returnPointIdx++;
916915
}
917-
cmdBufferProgress++;
918916
}
919917
}
920918
}

0 commit comments

Comments
 (0)