diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-31 19:18:17 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-31 22:51:31 +0000 |
commit | 1239e012ae6d4f00ce73f32d7244905a601170ea (patch) | |
tree | 5431689b34a9bcd03e602e26031b24e39a98c208 /src/sna/sna_accel.c | |
parent | 9712f49fddc8be939f77c25fcb907873af44619f (diff) |
sna: Make sure the needs_flush is always accompanied by a tracking request
References: https://bugs.freedesktop.org/show_bug.cgi?id=47597
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index e4065060..9b1a3853 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -13612,8 +13612,9 @@ sna_accel_flush_callback(CallbackListPtr *list, } else { DBG(("%s: flushing DRI pixmap=%ld\n", __FUNCTION__, priv->pixmap->drawable.serialNumber)); - ret = sna_pixmap_move_to_gpu(priv->pixmap, - MOVE_READ | __MOVE_FORCE); + if (sna_pixmap_move_to_gpu(priv->pixmap, + MOVE_READ | __MOVE_FORCE)) + kgem_bo_unclean(&sna->kgem, priv->gpu_bo); } (void)ret; } |