~vcs-imports/xserver-xorg-video-intel/master

Viewing all changes in revision 8592.

  • Committer: Chris Wilson
  • Date: 2020-04-17 20:49:50 UTC
  • Revision ID: git-v1:f28536588626e89fad074ccd498e40600a3afa77
sna: Forcibly relinquish the GPU bo cache of a SHM pixmap on flushing

Before we indicate return control of the SHM Pixmap to the client (that
is prior to the next XReply), we ensure that the original SHM buffer is
uptodate with any changes made on the GPU. We must flush the GPU writes
back to the CPU and so not allow ourselves to keep the dirty cache of
the GPU bo.

Closes: https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/issues/189
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Alexei Podtelezhnikov <apodtele@gmail.com>
Tested-by: Alexei Podtelezhnikov <apodtele@gmail.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: