xserver-multidpi/hw/xfree86/drivers/modesetting
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
..
dri2.c modesetting: Implement DRI2InfoRec version 9 callbacks 2016-09-13 11:18:38 -04:00
driver.c modesetting: cleanup pci device open 2017-01-11 11:14:12 +10:00
driver.h modesetting: cleanup pci device open 2017-01-11 11:14:12 +10:00
drmmode_display.c modesetting: allow switching from software to hardware cursors (v5). 2017-02-08 12:04:42 -05:00
drmmode_display.h modesetting: allow switching from software to hardware cursors (v5). 2017-02-08 12:04:42 -05:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
Makefile.am shadow: Lift 32->24 conversion from modesetting to dix 2016-12-12 14:10:44 -05:00
modesetting.man modesetting: Add more missing options to man page. 2015-08-13 00:36:12 +01:00
pageflip.c modesetting: fix compile error when --disable-glamor 2016-09-16 08:54:22 -07:00
present.c modesetting: add DRI2 page flip support 2016-09-02 13:58:09 -04:00
vblank.c modesetting: Set correct DRM event context version 2017-04-07 09:57:54 -04:00