summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-10-05 09:20:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-10-05 10:44:23 +0100
commitaa89ef69ac413abc65268a3758979b0edd1f3000 (patch)
tree9886ee8c55190f25211f479f4bb0f838f3afe1db
parente50e1bb3fd2fd20cce580841b20a3e47c7111ee9 (diff)
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>
-rw-r--r--src/sna/sna_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 72c6ef53..e41674be 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -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;