summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-05-14 08:49:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-05-14 16:18:42 +0100
commit3c95efe5f7989d95153f527eb7d2946d3bbc2af1 (patch)
tree16a0981627a643b63841546756c5adcf6f2d9d45
parent1486cfdf04b070787074493a30cd698455b016fe (diff)
sna/dri2: Force blocking wait if vblank queue fails
Whilst waiting for the previous blit to complete, if we fail to queue the vblank to wake up on the next frame, block before replying the blit is complete. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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 4ffa7c31..ca9251ae 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -2573,6 +2573,8 @@ static bool sna_dri2_blit_complete(struct sna_dri2_event *info)
__FUNCTION__));
if (sna_next_vblank(info))
return false;
+
+ kgem_bo_sync__gtt(&info->sna->kgem, info->bo);
}
DBG(("%s: blit finished\n", __FUNCTION__));