[PATCH xserver] xfree86: fix gamma compute when palette_size > 256
Yu, Qiang
Qiang.Yu at amd.com
Tue Oct 31 09:55:52 UTC 2017
>> If so, does this what you want:
>> 1. for palette_size <= 256, keep the original way
>> 2. for palette_size > 256, enlarge the crtc gamma_size and copy into it
>
> Not sure what you mean by "copy into it". The driver should simply make
> sure the CRTC gamma CLUT is large enough, in which case the code changed
> by your patch works as is.
>
So you mean in DDX init, we should check if crtc gamma size is big enough,
and enlarge when needed instead of doing the check and enlarge in xserver
like the attached patch?
Regards,
Qiang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xfree86-fix-gamma-compute-when-gamma_size-256.patch
Type: text/x-patch
Size: 1735 bytes
Desc: 0001-xfree86-fix-gamma-compute-when-gamma_size-256.patch
URL: <https://lists.x.org/archives/xorg-devel/attachments/20171031/310069dd/attachment.bin>
More information about the xorg-devel
mailing list