sna: Double check for no residual CPU damage along redisplay fast path

If we are using a CRTC source pixmap, it is possible that it is on the
CPU with a GPU bo and so requires flushing prior to the copy.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-10-05 09:20:12 +01:00
parent e50e1bb3fd
commit aa89ef69ac
1 changed files with 1 additions and 0 deletions

View File

@ -6801,6 +6801,7 @@ sna_crtc_redisplay(xf86CrtcPtr crtc, RegionPtr region, struct kgem_bo *bo)
if (crtc->filter == NULL &&
priv->gpu_bo &&
priv->cpu_damage == NULL &&
sna_transform_is_integer_translation(&crtc->crtc_to_framebuffer,
&tx, &ty)) {
DrawableRec tmp;