drm/amd/display: Fix set scaling doesn's work
authorjsg <jsg@openbsd.org>
Wed, 25 Jan 2023 01:58:44 +0000 (01:58 +0000)
committerjsg <jsg@openbsd.org>
Wed, 25 Jan 2023 01:58:44 +0000 (01:58 +0000)
From hongao
032cebdff71e92d6aa6fd2a8550eb7c9898553e0 in linux-6.1.y/6.1.8
040625ab82ce6dca7772cb3867fe5c9eb279a344 in mainline linux

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

index 708775a..5f565df 100644 (file)
@@ -9437,8 +9437,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;
        }