]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add basic downscale and upscale valdiation
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 1 Apr 2019 13:43:34 +0000 (09:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:21:28 +0000 (00:21 -0500)
commitdf4b49da0b3f1b51d0071168fed0ba643009708b
treefb35af18eb374dddcf045d0a4f9e9c041a7e8be7
parent5d28439d67e3ec558f881b8c0cad4b647a0a2ae0
drm/amd/display: Add basic downscale and upscale valdiation

[Why]
Planes have downscaling limits and upscaling limits per format and DM
is expected to validate these using DC caps. We should fail atomic
check validation if we aren't capable of doing the scaling.

[How]
We don't currently create store which DC plane maps to which DRM plane
so we can't easily check the caps directly. For now add basic
constraints that cover the absolute min and max downscale / upscale
limits for most RGB and YUV formats across ASICs.

Leave a TODO indicating that these should really be done with DC caps.
We'll probably need to subclass DRM planes again in order to correctly
identify which DC plane maps to it.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c