xserver-multidpi/hw/xfree86
Michel Dänzer fdc79fe72b edid: Prune duplicates after adding modes from DDC
Multiple calls to xf86EdidMonitorSet (which can be triggered e.g. by
running xrandr) would potentially keep adding the same modes, causing
the Monitor->Modes list to keep growing larger and using up more memory.

Fix this by calling xf86PruneDuplicateModes after adding the modes
returned by xf86DDCGetModes. This makes sure there's only one instance
of each unique mode in the list.

v2:
* Replace semicolon with {} for empty for loop (Emil Velikov)
* Slightly tweak commit log to avoid minor inaccuracy about what
  xf86PruneDuplicateModes does

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99521
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-03-21 12:31:16 -04:00
..
common xfree86: Remove 24bpp pixmap format support (v2) 2017-03-17 15:14:38 -04:00
ddc xfree86: small memory leaks fixes 2016-09-28 14:53:39 -04:00
dixmods glx/dri2: Don't build DRI loader if DRI2 isn't enabled 2016-10-27 14:25:42 +01:00
doc xfree86: Remove memClk from ScrnInfoRec 2017-02-16 11:35:03 -05:00
dri dispatch: Mark swapped dispatch as _X_COLD 2017-03-01 10:16:20 -05:00
dri2 dri2: Sync i965_pci_ids.h from Mesa. 2017-03-20 13:11:28 -04:00
drivers modesetting: allow switching from software to hardware cursors (v5). 2017-02-08 12:04:42 -05:00
exa build: Remove stale miext/cw include paths 2015-10-27 13:46:13 -04:00
fbdevhw fbdevhw: Fix a const qualifier warning 2015-09-23 15:18:24 -04:00
glamor_egl glamor: Share code for put_image handling. 2014-06-15 23:20:09 +01:00
i2c xfree86: Fix null pointer dereference 2016-09-28 14:53:39 -04:00
int10 x86emu: Change include order to avoid conflict with system header 2016-04-29 11:05:38 -04:00
loader loader: Handle mod->VersionInfo == NULL 2017-02-01 11:43:45 +10:00
man xfree86: Remove 24bpp pixmap format support (v2) 2017-03-17 15:14:38 -04:00
modes edid: Prune duplicates after adding modes from DDC 2017-03-21 12:31:16 -04:00
os-support tests: Avoid libtool message 2017-01-12 13:25:52 -05:00
parser parser: Fix crash when xf86nameCompare(s1 = x, s2 = NULL) 2017-03-15 16:07:10 -04:00
ramdac xfree86: Immediately handle failure to set HW cursor, v5 2017-02-08 12:04:42 -05:00
shadowfb shadowfb: Rename this particular shadow.c to shadowfb.c 2016-12-12 14:10:44 -05:00
utils xfree86: small memory leaks fixes 2016-09-28 14:53:39 -04:00
vbe xfree86: Change VBE version early-out to 1.2. (#22672) 2016-03-14 11:44:10 -04:00
vgahw Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
x86emu x86emu: Change include order to avoid conflict with system header 2016-04-29 11:05:38 -04:00
.gitignore Xorg: Add Xorg.wrap to hw/xfree86/.gitignore 2014-04-18 11:39:16 +02:00
Makefile.am vidmode: move to a separate library of its own 2016-02-29 16:29:01 -05:00
sdksyms.sh Revert "sdksyms: Tighten up the symbols we add to the magic table" 2017-03-16 14:19:37 -04:00
xorg-wrapper.c xfree86: Xorg.wrap: Do not require root rights for cards with 0 outputs 2016-10-26 12:40:23 -04:00
Xorg.sh.in xfree86: rename Xorg.bin to Xorg 2015-01-05 09:53:58 +10:00
xorgconf.cpp xfree86: fix wrong DontZap documentation (#71113) 2014-05-24 20:02:56 +10:00