From 77ddadf0ec6b867a0638660bf06c82ad31577795 Mon Sep 17 00:00:00 2001
From: Chris Wilson <chris@chris-wilson.co.uk>
Date: Sun, 23 Jun 2013 21:01:12 +0000
Subject: sna: Clear 'clear' hint upon uploading into tiled

Fixes regression from
commit 53c113c3cc2f8527debc185f0819139ca8637637 [2.21.10]
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Jun 21 19:27:24 2013 +0100

    sna: Allow PutImage to write inplace using manual tiling

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66059
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 0994c33..43d6a67 100644
--- src/sna/sna_accel.c
+++ src/sna/sna_accel.c
@@ -4000,6 +4000,8 @@ try_upload_tiled_x(PixmapPtr pixmap, RegionRec *region,
 	} while (--n);
 	__kgem_bo_unmap__cpu(&sna->kgem, priv->gpu_bo, dst);
 
+	priv->clear = false;
+	priv->cpu = false;
 	return true;
 }
 
--
cgit v0.9.0.2-2-gbebe
