sna: Flush the per-crtc render caches for rotated scanouts

We need to manually flush the render cache in order for results to be
visible on the scanout.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-06-28 10:42:21 +01:00
parent db79799810
commit 05f486f64b
1 changed files with 3 additions and 1 deletions

View File

@ -2758,8 +2758,10 @@ void sna_mode_redisplay(struct sna *sna)
damage.extents = crtc->bounds;
damage.data = NULL;
RegionIntersect(&damage, &damage, region);
if (RegionNotEmpty(&damage))
if (RegionNotEmpty(&damage)) {
sna_crtc_redisplay(crtc, &damage);
__kgem_flush(&sna->kgem, sna_crtc->bo);
}
RegionUninit(&damage);
}