drm/i915: Clean up legacy palette defines
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2022 15:37:13 +0000 (17:37 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 Nov 2022 17:04:54 +0000 (19:04 +0200)
commitc267f05668f6243a2cdf9409efc2eabcadee7e6a
treef929f30174912c1d217ce3d19cad0630bc064652
parent6b3960b1cb42f9fc58373e89252aec1821b6010e
drm/i915: Clean up legacy palette defines

Use consistent bit definitions for the legacy gamma LUT. We just
define these alongside the pre-ilk register definitions and point
to those from the ilk+ defines.

Also use the these appropriately in the LUT entry pack/unpack
functions.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221114153732.11773-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_color.c
drivers/gpu/drm/i915/i915_reg.h