On Wed, Oct 15, 2025 at 12:15:10AM -0300, Gustavo Sousa wrote:
> From: Sai Teja Pottumuttu <[email protected]>
> 
> Starting from Xe3p_LPD, linear surfaces also support horizontal flip.
> 
> Bspec: 68904
> Signed-off-by: Sai Teja Pottumuttu <[email protected]>
> Signed-off-by: Gustavo Sousa <[email protected]>

Reviewed-by: Matt Roper <[email protected]>

> ---
>  drivers/gpu/drm/i915/display/skl_universal_plane.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/skl_universal_plane.c 
> b/drivers/gpu/drm/i915/display/skl_universal_plane.c
> index 530adff81b99..9f1111324dab 100644
> --- a/drivers/gpu/drm/i915/display/skl_universal_plane.c
> +++ b/drivers/gpu/drm/i915/display/skl_universal_plane.c
> @@ -1753,7 +1753,8 @@ static int skl_plane_check_fb(const struct 
> intel_crtc_state *crtc_state,
>       }
>  
>       if (rotation & DRM_MODE_REFLECT_X &&
> -         fb->modifier == DRM_FORMAT_MOD_LINEAR) {
> +         fb->modifier == DRM_FORMAT_MOD_LINEAR &&
> +         DISPLAY_VER(display) < 35) {
>               drm_dbg_kms(display->drm,
>                           "[PLANE:%d:%s] horizontal flip is not supported 
> with linear surface formats\n",
>                           plane->base.base.id, plane->base.name);
> 
> -- 
> 2.51.0
> 

-- 
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation

Reply via email to