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:
parent
db79799810
commit
05f486f64b
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue