sna: Ensure the scanout is fully flushed on LeaveVT

Just in case we haven't otherwise flushed and invalidated the scanout
prior to loosing control of the output.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-03-16 17:35:26 +00:00
parent 68913715a2
commit 74cd4d09ae
1 changed files with 1 additions and 0 deletions

View File

@ -18178,6 +18178,7 @@ void sna_accel_watch_flush(struct sna *sna, int enable)
void sna_accel_leave(struct sna *sna)
{
DBG(("%s\n", __FUNCTION__));
sna_scanout_flush(sna);
/* as root we always have permission to render */
if (geteuid() == 0)