]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Unify all scaling when Integer Scaling enabled
authorReza Amini <Reza.Amini@amd.com>
Thu, 17 Oct 2019 20:40:02 +0000 (16:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:43 +0000 (15:29 -0500)
commit93bc5ae222d524d5f4dd6928ce68681f38d0bdb1
tree18ac9c2aeb1cb5b344f247b753c49e9d152a1f2d
parent66c9dfc10f38d37181632d51b96d23432a5f6242
drm/amd/display: Unify all scaling when Integer Scaling enabled

[why]
We want to guarantee integer ratio scaling for all scaling modes.

[how]
Treat centered, fullscreen, preserve aspect ratio the same: scale
the view as many times as possible, and fill in the rest with a black
border.

Signed-off-by: Reza Amini <Reza.Amini@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc_stream.h