AUB CSR to flush file stream on every enqueue call

This commit adds an explicit flush on AUB file stream to CSR flush method.

Change-Id: Ib491718dba6c7b4a5b1e173111830bd3ab72a3d0
This commit is contained in:
Milczarek, Slawomir
2018-07-05 15:40:29 +02:00
parent e437589ace
commit 1fda1331c0
4 changed files with 50 additions and 12 deletions

View File

@@ -84,6 +84,10 @@ void AubFileStream::write(const char *data, size_t size) {
fileHandle.write(data, size);
}
void AubFileStream::flush() {
fileHandle.flush();
}
bool AubFileStream::init(uint32_t stepping, uint32_t device) {
CmdServicesMemTraceVersion header;
memset(&header, 0, sizeof(header));

View File

@@ -420,6 +420,7 @@ FlushStamp AUBCommandStreamReceiverHw<GfxFamily>::flush(BatchBuffer &batchBuffer
subCaptureManager->deactivateSubCapture();
}
stream->flush();
return 0;
}