drm/i915: Extract intel_adjusted_rate()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 1 Apr 2021 15:40:43 +0000 (18:40 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Apr 2021 15:07:22 +0000 (18:07 +0300)
commitb876e79d7bffb2e6f78c291ddcd1f76c4e3fe5c5
tree3e0b1f0980101889e6fe9b5e2b85532c4cb225ea
parent1884b579c0cfbb52a92462184406558ac633cafb
drm/i915: Extract intel_adjusted_rate()

Extract a small helper to calculate the downscaling
adjusted pixel rate/data rate/etc.

v2: Drop the plane visibility check and add a comment explaining why

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/20210401154043.19466-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_atomic_plane.c