xserver/hw/xfree86/drivers/modesetting
Mario Kleiner 545fa90cbf Revert "modesetting: Only use GAMMA_LUT if its size is 1024"
This reverts commit 617f591fc4.

The problem described in that commit exists, but the two
preceeding commits with improvements to the servers RandR
code should avoid the mentioned problems while allowing the
use of GAMMA_LUT's instead of legacy gamma lut.

Use of legacy gamma lut's is not a good fix, because it will reduce
color output precision of gpu's with more than 1024 GAMMA_LUT
slots, e.g., AMD, ARM MALI and KOMEDA with 4096 slot luts,
and some Mediathek parts with 512 slot luts. On KOMEDA, legacy
lut's are completely unsupported by the kms driver, so gamma
correction gets disabled.

The situation is especially bad on Intel Icelake and later:
Use of legacy gamma tables will cause the kms driver to switch
to hardware legacy lut's with 256 slots, 8 bit wide, without
interpolation. This way color output precision is restricted to
8 bpc and any deep color / HDR output (10 bpc, fp16, fixed point 16)
becomes impossible. The latest Intel gen gpu's would have worse
color precision than parts which are more than 10 years old.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2021-09-27 09:44:48 +00: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: Fix dirty updates for sw rotation 2021-09-15 20:31:23 +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 Revert "modesetting: Only use GAMMA_LUT if its size is 1024" 2021-09-27 09:44:48 +00:00
drmmode_display.h modesetting: Fix dirty updates for sw rotation 2021-09-15 20:31:23 +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