Skip to content

Commit 040625a

Browse files
hongaooalexdeucher
authored andcommitted
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]> Cc: [email protected]
1 parent e695bc7 commit 040625a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9530,8 +9530,8 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
95309530
goto fail;
95319531
}
95329532

9533-
if (dm_old_con_state->abm_level !=
9534-
dm_new_con_state->abm_level)
9533+
if (dm_old_con_state->abm_level != dm_new_con_state->abm_level ||
9534+
dm_old_con_state->scaling != dm_new_con_state->scaling)
95359535
new_crtc_state->connectors_changed = true;
95369536
}
95379537

0 commit comments

Comments
 (0)