drm/i915/color: move pre-SKL gamma and CSC enable read to intel_color
authorJani Nikula <jani.nikula@intel.com>
Thu, 17 Aug 2023 15:53:08 +0000 (18:53 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 25 Aug 2023 10:12:31 +0000 (13:12 +0300)
commit9af09dfcdfa15490a2ad71acd8c5888f06261ebb
treec47de161bc3c6fae1f6506648e380d49e4a5c7da
parentf56e23edb1968a35d15909d60f4d8f8982d98add
drm/i915/color: move pre-SKL gamma and CSC enable read to intel_color

Abstract the register access better. The DSPCNTR read could be moved to
either i9xx_plane.c or intel_color.c. The latter feels better, even if
the register is written in the former.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/33830dba5d69027469d976f6909740ccff8c7281.1692287501.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_color.c
drivers/gpu/drm/i915/display/intel_display.c