summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-08-12 17:01:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-12 17:24:11 +0100
commitc8fc7f5e4bdd5b1e3212a226a2873393b5745f14 (patch)
tree281733f7773a6e865e852b375a7eb46e03f1d267
parent8586813169e6be75f93e3e15620fbb4e72912515 (diff)
sna/dri2: Force the render to be flushed after DRI2CopyRegion
After doing the copy, we need to be sure that it is submitted to hardware before the reply is sent to the client. Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Fixes: 1f6dfc9df678 ("sna: Only flush GPU bo for a damage event") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 3328d873..081da915 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -1385,6 +1385,7 @@ __sna_dri2_copy_region(struct sna *sna, DrawablePtr draw, RegionPtr region,
dst_draw, dst_bo, dx, dy,
boxes, n, hint);
+ sna->needs_dri_flush = true;
if (flags & (DRI2_SYNC | DRI2_BO)) { /* STAT! */
struct kgem_request *rq = RQ(dst_bo->rq);
if (rq && rq != (void *)&sna->kgem) {