sna/present: Try exchanging the Pixmap with a scanout-ready bo

Graphics / X.Org / xf86-video-intel - Chris Wilson [chris-wilson.co.uk] - 16 February 2015 10:01 UTC

Try to avoid more clflushing on the current Pixmap if we have a scanout-ready bo in the cache. We also note that since we unflip before any other drawing takes place, we do not need to mark the flipped Pixmap as being pinned to the scanout.

10e4048 sna/present: Try exchanging the Pixmap with a scanout-ready bo
src/sna/kgem.c | 3 +++
src/sna/sna_dri2.c | 2 +-
src/sna/sna_present.c | 53 +++++++++++++++++++++++++++++++++++++++++--------
3 files changed, 49 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share