diff options
author | hongao <[email protected]> | 2022-11-22 19:20:34 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-01-13 14:54:06 -0500 |
commit | 3c6d1aeb43425bebb52bc569950a03c15604c2d7 (patch) | |
tree | c8666c56a6cb004ee2f1d8603cc279dcd7fdf515 | |
parent | c3d749609472ba0b217b42ab66f80459847e2bcb (diff) |
drm/amd/display: Fix set scaling doesn's work
[Why]
Setting scaling does not correctly update CRTC state. As a result
dc stream state's src (composition area) && dest (addressable area)
was not calculated as expected. This causes set scaling doesn's work.
[How]
Correctly update CRTC state when setting scaling property.
Reviewed-by: Harry Wentland <[email protected]>
Tested-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: hongao <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 247e783d32ae..3e84d557b41b 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -9680,8 +9680,8 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev, goto fail; } - if (dm_old_con_state->abm_level != - dm_new_con_state->abm_level) + if (dm_old_con_state->abm_level != dm_new_con_state->abm_level || + dm_old_con_state->scaling != dm_new_con_state->scaling) new_crtc_state->connectors_changed = true; } |