summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-12-20 12:46:52 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-12-20 12:46:52 +0000
commitc27e6306e86797553351a71e2917a9b1158ec388 (patch)
tree9785339c1ec244c5ff8b23045cbb20b802edeab4 /src
parent5c16a4ec9b59123336483238ee6017db5491e255 (diff)
sna/dri2: Check for implicit flushing after updating a Pixmap buffer
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_dri2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 430c99ec..e5c4d53e 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -432,6 +432,8 @@ sna_dri2_pixmap_update_bo(struct sna *sna, PixmapPtr pixmap, struct kgem_bo *bo)
DBG(("%s: adding flush hint to handle=%d\n", __FUNCTION__, bo->handle));
bo->flush = true;
+ if (bo->exec)
+ sna->kgem.flush = 1;
assert(sna_pixmap(pixmap)->flush);
/* XXX DRI2InvalidateDrawable(&pixmap->drawable); */