Gentoo Archives: gentoo-commits

From: "Remi Cardona (remi)" <remi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-drivers/xf86-video-i810/files: xf86-video-i810-2.4.2-fix-flicker.patch
Date: Tue, 02 Sep 2008 20:09:12
Message-Id: E1KacBa-0002u7-3L@stork.gentoo.org
1 remi 08/09/02 20:09:10
2
3 Added: xf86-video-i810-2.4.2-fix-flicker.patch
4 Log:
5 x11-drivers/xf86-video-i810: add patch to try to fix flickering
6 (Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r3 i686)
7
8 Revision Changes Path
9 1.1 x11-drivers/xf86-video-i810/files/xf86-video-i810-2.4.2-fix-flicker.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-i810/files/xf86-video-i810-2.4.2-fix-flicker.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-i810/files/xf86-video-i810-2.4.2-fix-flicker.patch?rev=1.1&content-type=text/plain
13
14 Index: xf86-video-i810-2.4.2-fix-flicker.patch
15 ===================================================================
16 From: Jesse Barnes <jbarnes@××××××××××××.org>
17 Date: Wed, 20 Aug 2008 21:40:29 +0000 (-0700)
18 Subject: Don't allocate a pipe for hotplug detection
19 X-Git-Url: http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commitdiff;h=7b6f4d22211d71480caf6335a3eacaacff369371
20
21 Don't allocate a pipe for hotplug detection
22
23 It shouldn't be needed...
24 ---
25
26 --- a/src/i830_crt.c
27 +++ b/src/i830_crt.c
28 @@ -352,10 +352,9 @@ i830_crt_detect(xf86OutputPtr output)
29 xf86OutputStatus status;
30 Bool connected;
31
32 - crtc = i830GetLoadDetectPipe (output, NULL, &dpms_mode);
33 - if (!crtc)
34 - return XF86OutputStatusUnknown;
35 -
36 + /*
37 + * Try hotplug detection where supported
38 + */
39 if (IS_I945G(pI830) || IS_I945GM(pI830) || IS_I965G(pI830) ||
40 IS_G33CLASS(pI830)) {
41 if (i830_crt_detect_hotplug(output))
42 @@ -363,12 +362,19 @@ i830_crt_detect(xf86OutputPtr output)
43 else
44 status = XF86OutputStatusDisconnected;
45
46 - goto out;
47 + goto done;
48 }
49
50 + /*
51 + * DDC is next best, no flicker
52 + */
53 + crtc = i830GetLoadDetectPipe (output, NULL, &dpms_mode);
54 + if (!crtc)
55 + return XF86OutputStatusUnknown;
56 +
57 if (i830_crt_detect_ddc(output)) {
58 status = XF86OutputStatusConnected;
59 - goto out;
60 + goto out_release_pipe;
61 }
62
63 /* Use the load-detect method if we have no other way of telling. */
64 @@ -378,9 +384,10 @@ i830_crt_detect(xf86OutputPtr output)
65 else
66 status = XF86OutputStatusDisconnected;
67
68 -out:
69 +out_release_pipe:
70 i830ReleaseLoadDetectPipe (output, dpms_mode);
71
72 +done:
73 return status;
74 }