diff options
| author | Dave Stevenson <[email protected]> | 2024-10-25 17:15:59 +0000 |
|---|---|---|
| committer | Dave Stevenson <[email protected]> | 2024-11-27 14:37:21 +0000 |
| commit | e511f8fc3b2786999987901dad94c1548e091040 (patch) | |
| tree | 987ee89ceae8c451a278a4d311b28c96c3890704 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/vc4: Enable bg_fill if there are no planes enabled (diff) | |
| download | kernel-e511f8fc3b2786999987901dad94c1548e091040.tar.gz kernel-e511f8fc3b2786999987901dad94c1548e091040.zip | |
drm/vc4: Drop planes that are completely off-screen or 0 crtc size
It is permitted for a plane to be configured such that none
of it is on-screen via either negative dest rectangle X,Y
offset, or an offset that is greater than the crtc dimensions.
These planes were resized via drm_atomic_helper_check_plane_state
such that the source rectangle had a zero width or height, but
they still created a dlist entry even though they contributed
no pixels. In the case of vc6_plane_mode_set, that it could result
in negative values being written into registers, which caused
incorrect behaviour.
Drop planes that result in a source width or height of 0 pixels
or an on-screen size of 0 pixels to avoid the incorrect rendering.
Reviewed-by: Maxime Ripard <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Dave Stevenson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
