Skip to content

Commit c521fc3

Browse files
Roman Lialexdeucher
authored andcommitted
drm/amd/display: Update scaling settings on modeset
[Why] We update scaling settings when scaling mode has been changed. However when changing mode from native resolution the scaling mode previously set gets ignored. [How] Perform scaling settings update on modeset. Signed-off-by: Roman Li <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Stylon Wang <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 1be2a90 commit c521fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9678,7 +9678,8 @@ static int dm_update_crtc_state(struct amdgpu_display_manager *dm,
96789678
BUG_ON(dm_new_crtc_state->stream == NULL);
96799679

96809680
/* Scaling or underscan settings */
9681-
if (is_scaling_state_different(dm_old_conn_state, dm_new_conn_state))
9681+
if (is_scaling_state_different(dm_old_conn_state, dm_new_conn_state) ||
9682+
drm_atomic_crtc_needs_modeset(new_crtc_state))
96829683
update_stream_scaling_settings(
96839684
&new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream);
96849685

0 commit comments

Comments
 (0)