xserver-multidpi/hw
Mario Kleiner b5f9fcd50a xfree86/modes: Adapt xf86Randr12CrtcComputeGamma() for depth 30. (v2)
At screen depths > 24 bit, the color palettes passed into
xf86Randr12CrtcComputeGamma() can have a larger number of slots
than the crtc's hardware lut. E.g., at depth 30, 1024 palette
slots vs. 256 hw lut slots. This palette size > crtc gamma size
case is not handled yet and leads to silent failure, so gamma
table updates do not happen.

Add a new subsampling path for this case.

This makes lut updates work again, as tested with the xgamma
utility (uses XF86VidMode extension) and some RandR based
gamma ramp animation.

v2: Better resampling when subsampling the palette, as
    proposed by Ville. Now reaches the max index of the
    palette and deals with non-power-of-two sizes. Thanks.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Antoine Martin <antoine@nagafix.co.uk> (v1)
Cc: <ville.syrjala@linux.intel.com>
2018-02-27 10:18:07 -05:00
..
dmx dmx: warning fix 2018-02-14 17:21:43 -05:00
kdrive Xephyr: Avoid calling xcb_shm_detach() twice 2018-02-20 11:05:59 -05:00
vfb miinitext: Load GLX on the mi path 2018-02-14 17:04:48 -05:00
xfree86 xfree86/modes: Adapt xf86Randr12CrtcComputeGamma() for depth 30. (v2) 2018-02-27 10:18:07 -05:00
xnest miinitext: Load GLX on the mi path 2018-02-14 17:04:48 -05:00
xquartz xquartz: Fix linking with glxvnd 2018-02-26 14:13:40 -05:00
xwayland xwayland: Fix backwards need_rotate logic (v2) 2018-02-20 13:17:08 -05:00
xwin hw/xwin: Update for glxvnd 2018-02-19 12:44:04 -05:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00