]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: plane: Remove subpixel positioning check
authorDom Cobley <popcornmix@gmail.com>
Mon, 13 Jun 2022 14:47:31 +0000 (16:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:17:40 +0000 (11:17 +0200)
commit21c9a00ce64a1318327adc7c1ace27b8de809b99
tree1ccf32a9f684b5cb0fca03dd7b98fd5ecbbb0d7a
parent94a23745433e3f186cf817dc6eda0523c32fc799
drm/vc4: plane: Remove subpixel positioning check

[ Upstream commit 9a26c045eade1cd332becbf2be1d3c4a0004e6d0 ]

There is little harm in ignoring fractional coordinates
(they just get truncated).

Without this:
modetest -M vc4 -F tiles,gradient -s 32:1920x1080-60 -P89@74:1920x1080*.1.1@XR24

is rejected. We have the same issue in Kodi when trying to
use zoom options on video.

Note: even if all coordinates are fully integer. e.g.
src:[0,0,1920,1080] dest:[-10,-10,1940,1100]

it will still get rejected as drm_atomic_helper_check_plane_state
uses drm_rect_clip_scaled which transforms this to fractional src coords

Fixes: d39e3664f879 ("drm/vc4: Add support for scaling of display planes.")
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Link: https://lore.kernel.org/r/20220613144800.326124-5-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vc4/vc4_plane.c