drm/amd/display: Fix incorrect dsc force enable logic
authorEryk Brol <eryk.brol@amd.com>
Thu, 15 Oct 2020 19:40:53 +0000 (15:40 -0400)
committerDave Airlie <airlied@redhat.com>
Sun, 18 Oct 2020 23:13:53 +0000 (09:13 +1000)
[Why]
Missed removing a '!' which results in incorrect behavior

[How]
Remove the offending '!'

Signed-off-by: Eryk Brol <eryk.brol@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201015194053.355335-1-eryk.brol@amd.com
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

index db741e4..eee19ed 100644 (file)
@@ -647,7 +647,7 @@ static void try_disable_dsc(struct drm_atomic_state *state,
        for (i = 0; i < count; i++) {
                if (vars[i].dsc_enabled
                                && vars[i].bpp_x16 == params[i].bw_range.max_target_bpp_x16
-                               && !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
+                               && params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
                        kbps_increase[i] = params[i].bw_range.stream_kbps - params[i].bw_range.max_kbps;
                        tried[i] = false;
                        remaining_to_try += 1;