xserver/hw/xfree86/drivers/modesetting
Alex Goins 456dff1bf8 modesetting: Fix msSharePixmapBacking Segfault Regression
Commit cb1b1e184 modified msSharePixmapBacking() to derive modesettingPtr from
the 'screen' argument. Unfortunately, the name of the argument is misleading --
the screen is the slave screen. If the master is modesetting,
and the slave is not modesetting, it will segfault.

To fix the problem, this change derives modesettingPtr from
ppix->drawable.pScreen. This method is already used when calling
ms->glamor.shareable_fd_from_pixmap() later in the function.

To avoid future issues, this change also renames the 'screen' argument to
'slave'.

Signed-off-by: Alex Goins <agoins@nvidia.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
2019-12-23 08:56:22 -08:00
..
Makefile.am modesetting: Fix broken manpage in autoconf build 2019-10-04 10:29:23 +02:00
dri2.c modesetting: Use EGL_MESA_query_driver to select DRI driver if possible 2019-11-26 01:36:10 -08:00
driver.c modesetting: Fix msSharePixmapBacking Segfault Regression 2019-12-23 08:56:22 -08:00
driver.h modesetting: Use EGL_MESA_query_driver to select DRI driver if possible 2019-11-26 01:36:10 -08:00
drmmode_display.c modesetting: Use glamor_clear_pixmap in drmmode_clear_pixmap 2019-11-25 18:47:37 +01:00
drmmode_display.h modesetting: Only log 1 error for consecutive flip failures 2019-08-09 10:51:12 +02: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
meson.build xfree86: Link fb statically 2019-07-23 14:24:00 -04:00
modesetting.man modesetting: Document Option "DoubleShadow" in the man page 2018-09-10 14:47:06 -04:00
pageflip.c Revert "Revert "modesetting: Indirect the glamor API through LoaderSymbol"" 2019-11-21 14:20:57 -05:00
present.c Revert "Revert "modesetting: Indirect the glamor API through LoaderSymbol"" 2019-11-21 14:20:57 -05:00
vblank.c modesetting: Implement ms_covering_randr_crtc() for ms_present_get_crtc() 2019-11-11 14:35:57 -08:00