drm/amd/display: Update scaling settings on modeset
authorjsg <jsg@openbsd.org>
Mon, 19 Jul 2021 10:12:33 +0000 (10:12 +0000)
committerjsg <jsg@openbsd.org>
Mon, 19 Jul 2021 10:12:33 +0000 (10:12 +0000)
From Roman Li
01d6a693196595d356f0f5e42ab155c293470676 in linux 5.10.y/5.10.51
c521fc316d12fb9ea7b7680e301d673bceda922e in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 36f817b..d6a25c2 100644 (file)
@@ -8305,7 +8305,8 @@ skip_modeset:
        BUG_ON(dm_new_crtc_state->stream == NULL);
 
        /* Scaling or underscan settings */
-       if (is_scaling_state_different(dm_old_conn_state, dm_new_conn_state))
+       if (is_scaling_state_different(dm_old_conn_state, dm_new_conn_state) ||
+                               drm_atomic_crtc_needs_modeset(new_crtc_state))
                update_stream_scaling_settings(
                        &new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream);