xserver/hw/xfree86
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
..
common Merge remote-tracking branch 'hramrach/pull' 2011-10-19 17:33:07 -07:00
ddc hw/xfree86/ddc: remove duplicated include 2011-04-24 19:46:06 -07:00
dixmods xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
doc ddxDesign: drop the url in the coporate authors list 2011-10-03 12:18:37 -07:00
dri Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
dri2 Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
exa xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
fbdevhw xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
i2c Space & style cleanup of hw/xfree86/i2c/fi1236.c 2011-09-20 07:41:18 -07:00
int10 int10: Port internal users off xf86MapVidMem 2011-10-15 21:18:46 -07:00
loader Do not uselessly reload modules in DuplicateModule 2011-10-18 14:21:32 +02:00
man xorg.conf.man: fix 382: warning: missing `)' (got `R') #35054 2011-10-19 17:22:18 -07:00
modes xf86Crtc: handle no outputs with no modes harder. 2011-10-24 18:09:35 -07:00
os-support Merge remote-tracking branch 'whot/for-keith' 2011-10-19 17:26:50 -07:00
parser Remove unused vtSysreq 2011-09-29 23:05:35 +06:00
ramdac Eliminate MAXSCREENS-sized CursorScreenKey array. 2011-09-19 22:53:05 -07:00
shadowfb xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
utils os: Remove Error() 2011-10-11 21:23:46 -07:00
vbe xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
vgahw pci: Remove xf86MapDomainMemory 2011-10-15 21:18:46 -07:00
x86emu x86emu: There is no NO_INLINE implementation of unaligned access here. 2011-09-15 10:07:11 -05:00
xaa xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
.gitignore xfree86: Move sdksyms generation to ddx toplevel 2011-06-23 05:28:31 -07:00
Makefile.am sdksyms.sh may not be executable. 2011-10-01 17:35:19 +02:00
sdksyms.sh configure: wrap PCI code with macro and set it at build time 2011-10-15 21:18:47 -07:00
xorgconf.cpp xfree86: use sed rather than cpp to perform string substitutions 2011-01-18 15:11:14 -08:00