]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - xorg-x11-drv-intel/patches/intel-2.11-lvds-first.patch
Move all packages to root.
[people/amarx/ipfire-3.x.git] / xorg-x11-drv-intel / patches / intel-2.11-lvds-first.patch
1 diff -up xf86-video-intel-20100319/src/drmmode_display.c.jx xf86-video-intel-20100319/src/drmmode_display.c
2 --- xf86-video-intel-20100319/src/drmmode_display.c.jx 2010-03-22 13:24:13.483183499 -0400
3 +++ xf86-video-intel-20100319/src/drmmode_display.c 2010-03-22 13:25:59.810184060 -0400
4 @@ -1452,7 +1452,7 @@ Bool drmmode_pre_init(ScrnInfoPtr scrn,
5 intel_screen_private *intel = intel_get_screen_private(scrn);
6 struct drm_i915_getparam gp;
7 drmmode_ptr drmmode;
8 - unsigned int i;
9 + unsigned int i, lvds = -1;
10 int has_flipping = 0;
11
12 drmmode = xnfalloc(sizeof *drmmode);
13 @@ -1473,9 +1473,22 @@ Bool drmmode_pre_init(ScrnInfoPtr scrn,
14 drmmode->mode_res->max_height);
15 for (i = 0; i < drmmode->mode_res->count_crtcs; i++)
16 drmmode_crtc_init(scrn, drmmode, i);
17 +
18 + /* do LVDS first */
19 + for (i = 0; i < drmmode->mode_res->count_connectors; i++) {
20 + drmModeConnectorPtr koutput =
21 + drmModeGetConnector(drmmode->fd,
22 + drmmode->mode_res->connectors[i]);
23 + if (koutput->connector_type == DRM_MODE_CONNECTOR_LVDS) {
24 + drmmode_output_init(scrn, drmmode, i);
25 + lvds = i;
26 + }
27 + drmModeFreeConnector(koutput);
28 + }
29
30 for (i = 0; i < drmmode->mode_res->count_connectors; i++)
31 - drmmode_output_init(scrn, drmmode, i);
32 + if (i != lvds)
33 + drmmode_output_init(scrn, drmmode, i);
34
35 xf86InitialConfiguration(scrn, TRUE);
36
37