summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-08-03 08:07:00 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-08-03 08:07:00 +0100
commita77397a315db5402f4775ce8e15a5f60c5c43400 (patch)
treec74b5cf3f00e8248aec34f7199bdbe22976fb234 /src
parent52d3a026bbf844de1972ea9777dbcb11c7ac9ccd (diff)
sna/dri2: Flush rendering to a reused front buffer before reporting
When the client calls DRI2GetBuffers it expects the buffer to be coherent, that is all X rendering to it flushed to hardware for it to be able to read back. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-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 47bd2edc..2c3a3ed7 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -643,6 +643,7 @@ sna_dri2_create_buffer(DrawablePtr draw,
assert(private->bo->pitch == buffer->pitch);
assert(private->bo->active_scanout);
+ kgem_bo_submit(&sna->kgem, private->bo);
private->refcnt++;
return buffer;
}