aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1055-drm-amd-dal-Move-gamma-program-DPP-after-DCHUB-follo.patch
blob: 9592984c35df2fdbb8cd389170c68b6de02296fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From adcfaf6fd00ac35002ff955f6929d3b5129542f7 Mon Sep 17 00:00:00 2001
From: Hersen Wu <hersenxs.wu@amd.com>
Date: Wed, 6 Apr 2016 14:24:16 -0400
Subject: [PATCH 1055/1110] drm/amd/dal: Move gamma program DPP after DCHUB
 following program guide

Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc.c b/drivers/gpu/drm/amd/dal/dc/core/dc.c
index a5f33d4..e26a099 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc.c
@@ -934,6 +934,9 @@ bool dc_commit_surfaces_to_target(
 						dc_surface->dst_rect.width,
 						dc_surface->dst_rect.height);
 
+			core_dc->hwss.set_plane_config(
+				core_dc, pipe_ctx, &context->res_ctx);
+
 			if (surface->public.gamma_correction)
 				gamma = DC_GAMMA_TO_CORE(
 					surface->public.gamma_correction);
@@ -942,9 +945,6 @@ bool dc_commit_surfaces_to_target(
 					pipe_ctx->ipp,
 					pipe_ctx->opp,
 					gamma, surface);
-
-			core_dc->hwss.set_plane_config(
-				core_dc, pipe_ctx, &context->res_ctx);
 		}
 
 	core_dc->hwss.update_plane_addrs(core_dc, &context->res_ctx);
-- 
2.7.4