On Fri, Jul 05, 2024 at 05:52:44PM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <[email protected]>
> 
> Rearrange the max CFB max height platform into the
> more common "new first, old last" order.
> 

Reviewed-by: Rodrigo Vivi <[email protected]>

> Signed-off-by: Ville Syrjälä <[email protected]>
> ---
>  drivers/gpu/drm/i915/display/intel_fbc.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c 
> b/drivers/gpu/drm/i915/display/intel_fbc.c
> index 4d25ebb5ae9d..cf5750ed4681 100644
> --- a/drivers/gpu/drm/i915/display/intel_fbc.c
> +++ b/drivers/gpu/drm/i915/display/intel_fbc.c
> @@ -206,10 +206,10 @@ static unsigned int intel_fbc_cfb_size(const struct 
> intel_plane_state *plane_sta
>       struct intel_display *display = 
> to_intel_display(plane_state->uapi.plane->dev);
>       int height = drm_rect_height(&plane_state->uapi.src) >> 16;
>  
> -     if (DISPLAY_VER(display) == 7)
> -             height = min(height, 2048);
> -     else if (DISPLAY_VER(display) >= 8)
> +     if (DISPLAY_VER(display) >= 8)
>               height = min(height, 2560);
> +     else if (DISPLAY_VER(display) == 7)
> +             height = min(height, 2048);
>  
>       return height * intel_fbc_cfb_stride(plane_state);
>  }
> -- 
> 2.44.2
> 

Reply via email to