xserver-multidpi/hw/xfree86/modes
Dave Airlie 17416e88dc xf86Crtc: handle no outputs with no modes harder.
If you started an X server with no connected outputs, we pick a default
1024x768 mode, however if you then ran an xvidmode using app against that
server it would segfault the server due to not finding any valid modes.

This was due to the no output mode set code, only adding the modes to the
scrn->modes once, when something called randr 1.2 xf86SetScrnInfoModes would
get called and remove all the modes and we'd end up with 0.

This change fixes xf86SetScrnInfoModes to always report a scrn mode of at
least 1024x768, and pushes the initial configuration to just call it instead
of setting up the mode itself.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=746926

I've seen other bugs like this on other distros so it might also actually fix them.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2011-10-24 18:09:35 -07:00
..
Makefile.am displayid: Implement mode decoding. 2009-07-17 14:48:55 -04:00
xf86Crtc.c xf86Crtc: handle no outputs with no modes harder. 2011-10-24 18:09:35 -07:00
xf86Crtc.h xfree86: fix build with xv disabled 2011-10-09 17:08:34 -07:00
xf86Cursors.c configure: wrap PCI code with macro and set it at build time 2011-10-15 21:18:47 -07:00
xf86cvt.c Fix UTF-8 encoding 2011-06-30 16:38:31 +10:00
xf86DiDGA.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
xf86DisplayIDModes.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
xf86EdidModes.c edid: Fix incorrect timings for VIC61 2011-01-04 14:08:16 -05:00
xf86gtf.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86Modes.c print DisplayMode type bits 2011-09-21 13:46:57 -07:00
xf86Modes.h Fix UTF-8 encoding 2011-06-30 16:38:31 +10:00
xf86RandR12.c hw/xfree86/modes: remove duplicated include 2011-04-24 19:46:06 -07:00
xf86RandR12.h Clean up RandR12 bits on screen close (bug 27114) 2010-06-15 14:39:25 -07:00
xf86Rename.h Allow drivers to set crtc transforms. 2008-11-24 13:24:40 -08:00
xf86Rotate.c xf86/modes: Fix shadow rotation crashing when screen pixmap changes 2011-10-03 11:41:22 -07:00