File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
level_zero/core/source/cmdqueue Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments