Set bb end pointer correctly in batched submission

Related-To: NEO-5112

Change-Id: Ideff314e4aee501a02f07142b99307b8d6c08fa1
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2020-09-22 14:19:07 +02:00
committed by sys_ocldev
parent 877a781696
commit 1d4568e548
2 changed files with 8 additions and 0 deletions

View File

@@ -698,6 +698,8 @@ inline bool CommandStreamReceiverHw<GfxFamily>::flushBatchedSubmissions() {
((PIPE_CONTROL *)epiloguePipeControlLocation)->setDcFlushEnable(flushDcInEpilogue);
}
primaryCmdBuffer->batchBuffer.endCmdPtr = currentBBendLocation;
if (!this->flush(primaryCmdBuffer->batchBuffer, surfacesForSubmit)) {
submitResult = false;
break;