xserver/hw
Alex Goins b773a9c812 modesetting: Always tear down scanout pixmap
drmmode_set_scanout_pixmap_(cpu/gpu) would only do teardown if ppix ==
NULL. This meant that if there were consecutive calls to
SetScanoutPixmap(ppix != NULL) without calls to SetScanoutPixmap(ppix ==
NULL) in between, earlier calls would be leaked.  RRReplaceScanoutPixmap()
does this today.

Instead, when setting a scanout pixmap, always do teardown of the existing
scanout pixmap before setting up the new one. Then, if there is no new one
to set up, stop there.

This maintains the previous behavior in all cases except those with
multiple consecutive calls to SetScanoutPixmap(ppix != NULL).

v1: N/A
v2: N/A
v3: N/A
v4: N/A
v5: Initial commit
v6: Rebase onto ToT
v7: Unchanged

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Goins <agoins@nvidia.com>
2016-06-28 12:56:25 -04:00
..
dmx dix: Update some comments to reflect the new non-SIGIO input model 2016-06-08 11:36:32 -04:00
kdrive ephyr: Process only the last expose or configure available from the server 2016-06-20 11:55:21 -07:00
vfb vfb: Re-add LD_EXPORT_SYMBOLS_FLAG to LDFLAGS 2016-03-23 14:47:24 -04:00
xfree86 modesetting: Always tear down scanout pixmap 2016-06-28 12:56:25 -04:00
xnest xnest: Fix needless build dependency on xcb-util-keysyms 2015-11-24 10:41:14 -05:00
xquartz XQuartz: Update copyright years 2016-05-04 00:08:34 -07:00
xwayland xwayland-input: Fake crossing to rootwin 2016-06-23 16:00:30 +10:00
xwin hw/xwin: Fix a typo in "Remove Shadow DirectDraw engine" 2016-06-28 14:29:33 +01:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00