drm/i915: Add functions to check for RC CCS CC and MC CCS modifiers
authorImre Deak <imre.deak@intel.com>
Wed, 20 Oct 2021 19:51:38 +0000 (22:51 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 21 Oct 2021 18:44:37 +0000 (21:44 +0300)
commit0b2c31dd8868651d878af4c60b235dfb52909e74
treec9079623d2a0af790fdfe4ac89323f0d8042fd4b
parente359c47bfa6155b56d378864b7cc4a0d4e680c1b
drm/i915: Add functions to check for RC CCS CC and MC CCS modifiers

Instead of open-coding the checks add functions for this, simplifying
the handling of CCS modifiers on future platforms.

Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211020195138.1841242-12-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_fb.h
drivers/gpu/drm/i915/display/skl_universal_plane.c