[PATCH v4 1/5] drm/sun4i: Reject fractional source coordinates without scaler

Chen-Yu Tsai wens at kernel.org
Sun Nov 22 09:53:55 PST 2026


On Fri, Nov 20, 2026 at 1:54 AM Jernej Skrabec <jernej.skrabec at gmail.com> 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 at gmail.com>

Reviewed-by: Chen-Yu Tsai <wens at kernel.org>



More information about the linux-arm-kernel mailing list