]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atmel-hlcdc: don't reject the commit if the src rect has fractional parts
authorLudovic Desroches <ludovic.desroches@microchip.com>
Thu, 20 Nov 2025 10:38:25 +0000 (11:38 +0100)
committerManikandan Muralidharan <manikandan.m@microchip.com>
Wed, 21 Jan 2026 03:58:09 +0000 (09:28 +0530)
commit06682206e2a1883354ed758c09efeb51f435adbd
treed9a40b538f47a7010b50065f03340b066d1e8f99
parentbc847787233277a337788568e90a6ee1557595eb
drm/atmel-hlcdc: don't reject the commit if the src rect has fractional parts

Don’t reject the commit when the source rectangle has fractional parts.
This can occur due to scaling: drm_atomic_helper_check_plane_state() calls
drm_rect_clip_scaled(), which may introduce fractional parts while
computing the clipped source rectangle. This does not imply the commit is
invalid, so we should accept it instead of discarding it.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Reviewed-by: Manikandan Muralidharan <manikandan.m@microchip.com>
Link: https://patch.msgid.link/20251120-lcd_scaling_fix-v1-1-5ffc98557923@microchip.com
Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c