xserver/hw
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
..
dmx dispatch: Mark swapped dispatch as _X_COLD 2017-03-01 10:16:20 -05:00
kdrive ephyr: Don't clobber bitsPerPixel when using glamor 2017-03-17 15:14:21 -04:00
vfb vfb: Bump default depth to 24 2017-02-28 14:31:14 -05:00
xfree86 edid: Prune duplicates after adding modes from DDC 2017-03-21 12:31:16 -04:00
xnest dix: Rename (and retype) PixmapPerDepth[1] to defaultStipple 2016-12-12 14:09:59 -05:00
xquartz ddx: add new call to purge input devices that weren't added 2016-10-26 15:35:07 +10:00
xwayland xwayland: Monitor client states to destroy callbacks 2017-03-09 17:37:05 +09:00
xwin shadow: Macro cleanup 2016-12-12 14:10:44 -05:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00