From: | "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-drivers/xf86-video-intel/files: xf86-video-intel-2.17-sna-offsets.patch |
Date: | Fri, 25 Nov 2011 23:30:30 |
Message-Id: | 20111125233019.207762004C@flycatcher.gentoo.org |
1 | chithanh 11/11/25 23:30:19 |
2 | |
3 | Added: xf86-video-intel-2.17-sna-offsets.patch |
4 | Log: |
5 | Add patch to fix screen corruption, bug #391819. |
6 | |
7 | (Portage version: 2.2.0_alpha77/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 x11-drivers/xf86-video-intel/files/xf86-video-intel-2.17-sna-offsets.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-intel/files/xf86-video-intel-2.17-sna-offsets.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-intel/files/xf86-video-intel-2.17-sna-offsets.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: xf86-video-intel-2.17-sna-offsets.patch |
16 | =================================================================== |
17 | From 16f5e224dcfd97012b38ee1af6c72dbe3c0f3304 Mon Sep 17 00:00:00 2001 |
18 | From: Chris Wilson <chris@×××××××××××××××.uk> |
19 | Date: Fri, 25 Nov 2011 16:21:41 +0000 |
20 | Subject: sna: Avoid the double application of drawable offsets for tiled spans |
21 | |
22 | As we handle tiled spans indirectly, we need to avoid applying the |
23 | drawable offsets twice (once in the mi layer generating the spans, and |
24 | then once more in the tiled rect renderer). |
25 | |
26 | Reported-by: Ulrich Müller <ulm@g.o> |
27 | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43245 |
28 | Signed-off-by: Chris Wilson <chris@×××××××××××××××.uk> |
29 | --- |
30 | diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c |
31 | index 1a35c4d..03020c9 100644 |
32 | --- a/src/sna/sna_accel.c |
33 | +++ b/src/sna/sna_accel.c |
34 | @@ -2790,9 +2790,9 @@ sna_fill_spans(DrawablePtr drawable, GCPtr gc, int n, |
35 | return; |
36 | |
37 | for (i = 0; i < n; i++) { |
38 | - rect[i].x = pt[i].x; |
39 | + rect[i].x = pt[i].x - drawable->x; |
40 | rect[i].width = width[i]; |
41 | - rect[i].y = pt[i].y; |
42 | + rect[i].y = pt[i].y - drawable->y; |
43 | rect[i].height = 1; |
44 | } |
45 | |
46 | -- |
47 | cgit v0.9.0.2-2-gbebe |