drm/amd/display: Fix FMT truncation programming
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 7 Mar 2018 16:12:20 +0000 (11:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Mar 2018 05:22:35 +0000 (00:22 -0500)
Switch the order of parameters being set for depth
and mode of truncation, as it previously was not correct

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c

index f19de13024f82a9cc69636747e555156c0406e1f..87093894ea9e73f8e4a4b1f46787b6a30a2bcb5a 100644 (file)
@@ -134,9 +134,9 @@ static void set_truncation(
        REG_UPDATE_3(FMT_BIT_DEPTH_CONTROL,
                                FMT_TRUNCATE_EN, 1,
                                FMT_TRUNCATE_DEPTH,
-                               params->flags.TRUNCATE_MODE,
+                               params->flags.TRUNCATE_DEPTH,
                                FMT_TRUNCATE_MODE,
-                               params->flags.TRUNCATE_DEPTH);
+                               params->flags.TRUNCATE_MODE);
 }