Merge lp:~matttbe/ubuntu/raring/xserver-xorg-video-intel/lp1104041 into lp:ubuntu/raring/xserver-xorg-video-intel

Proposed by Matthieu Baerts
Status: Merged
Merge reported by: Timo Aaltonen
Merged at revision: not available
Proposed branch: lp:~matttbe/ubuntu/raring/xserver-xorg-video-intel/lp1104041
Merge into: lp:ubuntu/raring/xserver-xorg-video-intel
Diff against target: 80 lines (+61/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/upstream-git-clipExtents.patch (+53/-0)
To merge this branch: bzr merge lp:~matttbe/ubuntu/raring/xserver-xorg-video-intel/lp1104041
Reviewer Review Type Date Requested Status
Timo Aaltonen Approve
Review via email: mp+144788@code.launchpad.net

Description of the change

Hello Timo,

This new branch fixes this bug #1104041 .
It includes a patch made by Chris Wilson.
For more details:
 * https://bugs.freedesktop.org/show_bug.cgi?id=59806
 * http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=d60128c55e8f5f69476d42c20f2fd62ccc0f411e

I add you as reviewer because I see that you've uploaded all older versions on Raring but I can change if you want ;)

Regards,

Matt

To post a comment you must log in.
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

thanks for handling the bug upstream, I'll approve it but since we're using git on git.debian.org I'll just update the snapshot there directly

in the future you can just ping us on #ubuntu-x about available fixes :)

review: Approve
Revision history for this message
Matthieu Baerts (matttbe) wrote :

> in the future you can just ping us on #ubuntu-x about available fixes :)
Ok. I'll do that next time :)

Thank you for your support!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-01-24 10:22:41 +0000
3+++ debian/changelog 2013-01-24 20:02:22 +0000
4@@ -1,3 +1,10 @@
5+xserver-xorg-video-intel (2:2.20.19-0ubuntu3) raring; urgency=low
6+
7+ * debian/patches/upstream-git-clipExtents.patch:
8+ - Compensate clipExtents for drawable offset (LP: #1104041).
9+
10+ -- Matthieu Baerts (matttbe) <matttbe@ubuntu.com> Thu, 24 Jan 2013 20:51:54 +0100
11+
12 xserver-xorg-video-intel (2:2.20.19-0ubuntu2) raring; urgency=low
13
14 * upstream-snapshot-778dba90c.diff: Patch to update to current git
15
16=== modified file 'debian/patches/series'
17--- debian/patches/series 2013-01-24 10:22:41 +0000
18+++ debian/patches/series 2013-01-24 20:02:22 +0000
19@@ -1,2 +1,3 @@
20 0002-Update-manpage-for-new-accelmethod-option.patch
21 upstream-snapshot-778dba90c.diff
22+upstream-git-clipExtents.patch
23
24=== added file 'debian/patches/upstream-git-clipExtents.patch'
25--- debian/patches/upstream-git-clipExtents.patch 1970-01-01 00:00:00 +0000
26+++ debian/patches/upstream-git-clipExtents.patch 2013-01-24 20:02:22 +0000
27@@ -0,0 +1,53 @@
28+From d60128c55e8f5f69476d42c20f2fd62ccc0f411e Mon Sep 17 00:00:00 2001
29+From: Chris Wilson <chris@chris-wilson.co.uk>
30+Date: Thu, 24 Jan 2013 15:41:29 +0000
31+Subject: sna/dri: Compensate clipExtents for drawable offset
32+
33+The clipExtents is in screen coordinates whereas we just want to confirm
34+that the maximum pixel to be copied lies with the DRI2 buffer, which is
35+relative to the drawable.
36+
37+Reported-by: Matthieu Baerts <matttbe@gmail.com>
38+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59806
39+Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
40+---
41+diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
42+index 9d249e3..15b87dd 100644
43+--- a/src/sna/sna_dri.c
44++++ b/src/sna/sna_dri.c
45+@@ -842,20 +842,31 @@ can_blit(struct sna * sna,
46+ DRI2BufferPtr back)
47+ {
48+ RegionPtr clip;
49++ int w, h;
50+ uint32_t s;
51+
52+ if (draw->type == DRAWABLE_PIXMAP)
53+ return true;
54+
55+ clip = &((WindowPtr)draw)->clipList;
56++ w = clip->extents.x2 - draw->x;
57++ h = clip->extents.y2 - draw->y;
58++ if ((w|h) < 0)
59++ return false;
60+
61+ s = get_private(front)->size;
62+- if ((s>>16) < clip->extents.y2 || (s&0xffff) < clip->extents.x2)
63++ if ((s>>16) < h || (s&0xffff) < w) {
64++ DBG(("%s: reject front size (%dx%d) < (%dx%d)\n", __func__,
65++ s&0xffff, s>>16, w, h));
66+ return false;
67++ }
68+
69+ s = get_private(back)->size;
70+- if ((s>>16) < clip->extents.y2 || (s&0xffff) < clip->extents.x2)
71++ if ((s>>16) < h || (s&0xffff) < w) {
72++ DBG(("%s:reject back size (%dx%d) < (%dx%d)\n", __func__,
73++ s&0xffff, s>>16, w, h));
74+ return false;
75++ }
76+
77+ return true;
78+ }
79+--
80+cgit v0.9.0.2-2-gbebe

Subscribers

People subscribed via source and target branches