diff options
author | Tomi Valkeinen <[email protected]> | 2020-12-11 13:42:37 +0200 |
---|---|---|
committer | Tomi Valkeinen <[email protected]> | 2020-12-15 15:46:03 +0200 |
commit | 1b8977434606f2dcd8a90ca660eb535b56945662 (patch) | |
tree | c88f73abe2340fc120bd883418a03dc6b150b97d /drivers/gpu/drm/omapdrm/omap_crtc.c | |
parent | 6ca2ab8086af8434a4c0990882321a345c3cc2c6 (diff) |
drm: add legacy support for using degamma for gamma
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 thus we have:
degamma -> ctm -> out
This is fine for userspace which sets gamma table using the properties,
as the userspace can check for the existence of gamma & degamma, but the
legacy gamma-set ioctl does not work.
Change the DRM core to use DEGAMMA_LUT instead of GAMMA_LUT when the
latter is unavailable.
Signed-off-by: Tomi Valkeinen <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_crtc.c')
0 files changed, 0 insertions, 0 deletions