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>
This commit is contained in:
Chris Wilson 2016-08-03 08:07:00 +01:00
parent 52d3a026bb
commit a77397a315
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}