sna: Skip undamaged TearFree redisplays
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 Jan 2014 05:32:25 +0000 (05:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 Jan 2014 05:32:25 +0000 (05:32 +0000)
commit4b73a0ea22b43807c0118f4d7e9dcac3f0626463
treecc6db15e645480396e78ba0141d74491626622e8
parent9f3fc9ec49f0caf53344577896ef9b6468cd3d4f
sna: Skip undamaged TearFree redisplays

If we have not had cause to flush the wait_for_shadow buffer during the
course of the rendering, then we never wrote to the backbuffer and its
contents are still identical to the current frontbuffer. So if the
wait_for_shadow is still flagged as required on the scanout, we know we
can safely discard the redisplay request.

References: https://bugs.freedesktop.org/show_bug.cgi?id=70905
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_display.c