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
884
884
885
885
auto &returnPoints = commandList->getReturnPoints ();
886
886
uint32_t returnPointsSize = commandList->getReturnPointsSize ();
887
- uint32_t cmdBufferProgress = 0 ;
888
887
uint32_t returnPointIdx = 0 ;
889
888
890
889
for (size_t iter = 0 ; iter < cmdBufferCount; iter++) {
@@ -896,7 +895,7 @@ void CommandQueueHw<gfxCoreFamily>::programOneCmdListBatchBufferStart(CommandLis
896
895
NEO::EncodeBatchBufferStartOrEnd<GfxFamily>::programBatchBufferStart (&cmdStream, startOffset, true );
897
896
if (returnPointsSize > 0 ) {
898
897
bool cmdBufferHasRestarts = std::find_if (
899
- std::next (returnPoints.begin (), cmdBufferProgress ),
898
+ std::next (returnPoints.begin (), returnPointIdx ),
900
899
returnPoints.end (),
901
900
[allocation](CmdListReturnPoint &retPt) {
902
901
return retPt.currentCmdBuffer == allocation;
@@ -914,7 +913,6 @@ void CommandQueueHw<gfxCoreFamily>::programOneCmdListBatchBufferStart(CommandLis
914
913
true );
915
914
returnPointIdx++;
916
915
}
917
- cmdBufferProgress++;
918
916
}
919
917
}
920
918
}
You can’t perform that action at this time.
0 commit comments