diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-12 17:01:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-12 17:24:11 +0100 |
commit | c8fc7f5e4bdd5b1e3212a226a2873393b5745f14 (patch) | |
tree | 281733f7773a6e865e852b375a7eb46e03f1d267 | |
parent | 8586813169e6be75f93e3e15620fbb4e72912515 (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.c | 1 |
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) { |