From 736b496b458d666416ea94f157c05ce78f98a600 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 5 Nov 2013 21:33:18 +0000 Subject: sna: Mark partial move_area_to_gpu with MOVE_READ on promotion to move_to_gpu When promoting a partial move_area_to_gpu to a full move_to_gpu, we have to disable certain optimisations that we try to use if MOVE_READ==0. Reported-and-tested-by: Matti Hamalainen Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71198 Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 2aae0e2f..02b319d7 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -3035,7 +3035,7 @@ sna_pixmap_move_area_to_gpu(PixmapPtr pixmap, const BoxRec *box, unsigned int fl if (priv->cpu_damage == NULL) { list_del(&priv->flush_list); - return sna_pixmap_move_to_gpu(pixmap, flags); + return sna_pixmap_move_to_gpu(pixmap, MOVE_READ | flags); } if (priv->gpu_bo == NULL) { -- cgit v1.2.3