OSDN Git Service

drm/amd/display: Report stream as different on scaling change
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Fri, 6 Oct 2017 15:57:40 +0000 (11:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:50:10 +0000 (16:50 -0400)
commit9a5d9c48d883db4f7f3e5409062bef7d25165a95
tree20c5ef2468c009f3e21ddb23c0d88c0e8a2f4e4f
parent199e458aafc241a2792b3f8a99d5a11aa7726a7d
drm/amd/display: Report stream as different on scaling change

When scaling is enabled, our preference is to scale up to the prefered
(native) mode. This means that hardware timings will be the same across
a modeset.

Therefore, also report mode as changed if source or destination
rectangle is different.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc.h