[PATCH xserver] xfree86: fix gamma compute when palette_size > 256

Michel Dänzer michel at daenzer.net
Mon Oct 30 10:28:04 UTC 2017


On 30/10/17 07:33 AM, Qiang Yu wrote:
> palette_(red|green|blue)_size > crtc->gamma_size (=256)
> this may happen when screen has per RGB chanel > 8bit,
> i.e. 30bit depth screen 10bit per RGB.

Is palette_size > gamma_size really useful though?

Seems to me like gamma_size should always be >= palette_size.
Specifically, if the gamma ramp only has 256 entries, what's the benefit
of having 1024 entries in the palette?

What's the exact configuration in which you hit this?


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the xorg-devel mailing list