gltrace: Commit all writes to coherent buffers before syncing them back

Otherwise these writes would be lost. Deus Ex: Mankind Divided renders
incorrectly without this.

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Change-Id: I3a5e7ab81b1ccbd3860c192466a79f87b063877c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/apitrace/+/2224545
Reviewed-by: Po-Hsien Wang <pwang@chromium.org>
Commit-Queue: Robert Tarasov <tutankhamen@chromium.org>
Tested-by: Robert Tarasov <tutankhamen@chromium.org>
1 file changed