summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikita Lipski <mikita.lipski@amd.com>2018-03-07 19:12:20 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-03-21 08:22:35 +0300
commit4407a29bad96a773e1ddd380ecab0828b5656b0a (patch)
tree68764075d42168c5db963f6bd92f6c7855adab86
parent8bfac12f88dbafff40af72c7990b7d14e0158545 (diff)
downloadlinux-4407a29bad96a773e1ddd380ecab0828b5656b0a.tar.xz
drm/amd/display: Fix FMT truncation programming
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>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_opp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
index f19de13024f8..87093894ea9e 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
@@ -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);
}