Re: [PATCH v4 1/5] drm/sun4i: Reject fractional source coordinates without scaler
From: Chen-Yu Tsai
Date: Sun Nov 22 2026 - 12:54:13 EST
On Fri, Nov 20, 2026 at 1:54 AM Jernej Skrabec <jernej.skrabec@xxxxxxxxx> wrote:
>
> The layer code programs the scaler whenever the source rectangle has a
> fractional offset, since only the scaler can apply a sub-pixel phase.
> drm_atomic_helper_check_plane_state() with DRM_PLANE_NO_SCALING doesn't
> catch that: it only compares the scaling factor, which may still be
> exactly 1.0 with fractional source coordinates.
>
> Channels without a scaler would thus have the non-existent scaler
> programmed instead of an error being returned. Reject fractional source
> coordinates on such channels.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>
Reviewed-by: Chen-Yu Tsai <wens@xxxxxxxxxx>