xserver/hw
Daniel Stone 0c8e6ed858 modesetting: Set correct DRM event context version
DRM_EVENT_CONTEXT_VERSION is the latest context version supported by
whatever version of libdrm is present. modesetting was blindly asserting
it supported whatever version that may be, even if it actually didn't.

With libdrm 2.4.78, setting a higher context version than 2 will attempt
to call the page_flip_handler2 vfunc if it was non-NULL, which being a
random chunk of stack memory, it might well have been.

Set the version as 2, which should be bumped only with the appropriate
version checks.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
2017-04-07 09:57:54 -04:00
..
dmx dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
kdrive dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
vfb dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
xfree86 modesetting: Set correct DRM event context version 2017-04-07 09:57:54 -04:00
xnest dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
xquartz ddx: add new call to purge input devices that weren't added 2016-10-26 15:35:07 +10:00
xwayland dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
xwin dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00