]> www.infradead.org Git - nvme.git/commit
drm/i915/fbc: Extract intel_fbc_max_cfb_height()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Jul 2024 14:52:45 +0000 (17:52 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Jul 2024 12:13:15 +0000 (15:13 +0300)
commitf89d7664c3617836aecd291c56c8ab63fe228fbd
treea9eaadb1112d2d270fa03b1f9462526634cd1092
parent4290eaa8424905dcee4daa0666ec841dc3a0bfb3
drm/i915/fbc: Extract intel_fbc_max_cfb_height()

Pull the code to determine the maximum CFB height
into a separate function.

To make this work we need to declare an explicit max height
for all older platforms as well. But that is actually just
the max plane height as pre-HSW hardware supposedly doesn't
have the trick of leaving the extra lines uncompressed.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240705145254.3355-12-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c