drm/i915: Make ilk_load_luts() deal with degamma
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 24 Oct 2022 16:15:10 +0000 (19:15 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 25 Oct 2022 22:37:39 +0000 (01:37 +0300)
commit5ca1493e252a8b9cdb573b45bea200735dfbddb9
treebd37cd25bd2a2651aa13208442fb5e73eb09b28c
parentf5e674e92e9526430e01ef996bef5b50723f59bc
drm/i915: Make ilk_load_luts() deal with degamma

Make ilk_load_luts() ready for a degamma lut. Currently we never
have one, but soon we may get one from readout, and I think we
may want to change the state computation such that we may end up
with one even when userspace has simply supplied a gamma lut.

At least the code now follows the path laid out by the ivb/bdw
counterpars.

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221024161514.5340-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_color.c