xserver/hw/xfree86/drivers/modesetting
Aaron Plattner 617f591fc4 modesetting: Only use GAMMA_LUT if its size is 1024
GAMMA_LUT sizes other than 1024 cause a crash during startup if the memcpy()
calls in xf86RandR12CrtcSetGamma() read past the end of the legacy X11 /
XVidMode gamma ramp.

This is a problem on Intel ICL / GEN11 platforms because they report a GAMMA_LUT
size of 262145. Since it's not clear that the modesetting driver will generate a
proper gamma ramp at that size even if xf86RandR12CrtcSetGamma() is fixed, just
disable use of GAMMA_LUT for sizes other than 1024 for now. This will cause the
modesetting driver to disable the CTM property and fall back to the legacy gamma
LUT.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1193
Tested-by: Mark Herbert
2021-09-09 22:45:06 -07:00
..
Makefile.am modesetting: Fix broken manpage in autoconf build 2019-10-04 10:29:23 +02:00
dri2.c modesetting: Remove few common functions from ms namespace 2021-04-16 10:53:43 +00:00
driver.c modesetting: Add option for non-vsynced flips for "secondary" outputs. 2021-09-09 09:53:21 +00:00
driver.h modesetting: Add option for non-vsynced flips for "secondary" outputs. 2021-09-09 09:53:21 +00:00
drmmode_display.c modesetting: Only use GAMMA_LUT if its size is 1024 2021-09-09 22:45:06 -07:00
drmmode_display.h modesetting: Add option for non-vsynced flips for "secondary" outputs. 2021-09-09 09:53:21 +00: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: Add option for non-vsynced flips for "secondary" outputs. 2021-09-09 09:53:21 +00:00
pageflip.c modesetting: Add option for non-vsynced flips for "secondary" outputs. 2021-09-09 09:53:21 +00:00
present.c modesetting: Add option for non-vsynced flips for "secondary" outputs. 2021-09-09 09:53:21 +00:00
vblank.c modesetting: Remove few common functions from ms namespace 2021-04-16 10:53:43 +00:00