summaryrefslogtreecommitdiff
path: root/extra/xf86-video-intel/firefox_image_fix.diff
blob: 653295dabb463cb2258cf3889be8eb93b6a74b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
--- a/src/sna/sna_accel.c
+++ b/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