drm/i915: Fix watermark calculations for DG2 CCS modifiers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 3 Oct 2022 11:15:42 +0000 (14:15 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 3 Oct 2022 15:45:33 +0000 (18:45 +0300)
commitf25d9f81a8e09ace4f04106995550bae1f522143
tree556378fca1597267f617ba4cf40fe9fd426a77b5
parenta627455bbe50a111475d7a42beb58fa64bd96c83
drm/i915: Fix watermark calculations for DG2 CCS modifiers

Take the DG2 CCS modifiers into account when calculating the
watermarks. Othwerwise we'll calculate the watermarks thinking these
tile-4 modifiers are linear.

The rc_surface part is actually a nop since that is not used
for any glk+ platform.

Cc: stable@vger.kernel.org
Fixes: 4c3afa72138c ("drm/i915/dg2: Add support for DG2 render and media compression")
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221003111544.8007-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/skl_watermark.c