CSR AUB + HW mode - flush to poll MMIO for completion

Ensures that each submit of LRCA be serialized through the simulator
like it is for AUBs captured in the standalone mode.

Change-Id: I1e3ad500012dce960d0e64b56af1cb60142772da
This commit is contained in:
Milczarek, Slawomir
2018-08-24 00:16:32 +02:00
parent a73801097f
commit 61000c0dd4
5 changed files with 20 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ class AUBCommandStreamReceiverHw : public CommandStreamReceiverSimulatedHw<GfxFa
// Family specific version
void submitLRCA(EngineType engineType, const MiContextDescriptorReg &contextDescriptor);
void pollForCompletion(EngineType engineType);
MOCKABLE_VIRTUAL void pollForCompletion(EngineType engineType);
void initGlobalMMIO();
void initEngineMMIO(EngineType engineType);

View File

@@ -477,8 +477,8 @@ FlushStamp AUBCommandStreamReceiverHw<GfxFamily>::flush(BatchBuffer &batchBuffer
submitLRCA(engineType, contextDescriptor);
}
pollForCompletion(engineType);
if (this->standalone) {
pollForCompletion(engineType);
*this->tagAddress = this->peekLatestSentTaskCount();
}