[PATCH v4 2/2] drm: add legacy support for using degamma for gamma

2020-12-11 Thread Tomi Valkeinen
The DRM core handles legacy gamma-set ioctl by setting GAMMA_LUT and clearing CTM and DEGAMMA_LUT. This works fine on HW where we have either: degamma -> ctm -> gamma -> out or ctm -> gamma -> out However, if the HW has gamma table before ctm, the atomic property should be DEGAMMA_LUT, and thu

Re: [PATCH v4 2/2] drm: add legacy support for using degamma for gamma

2020-12-11 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Fri, Dec 11, 2020 at 01:42:37PM +0200, Tomi Valkeinen wrote: > The DRM core handles legacy gamma-set ioctl by setting GAMMA_LUT and > clearing CTM and DEGAMMA_LUT. > > This works fine on HW where we have either: > > degamma -> ctm -> gamma -> out > > or >