aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0525-drm-amd-display-fix-dc_check_update_surfaces_for_str.patch
blob: 011efe6fd19975b94b12d80fa69c8b978468d8c8 (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
41
42
43
44
45
46
47
From 60d5ac0c5bd50842b284fbae8f72568fd8baa0e1 Mon Sep 17 00:00:00 2001
From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Date: Tue, 13 Jun 2017 16:31:49 -0400
Subject: [PATCH 0525/4131] drm/amd/display: fix
 dc_check_update_surfaces_for_stream memcmp sequence

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index e518aed..f5f365b 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1094,11 +1094,13 @@ static enum surface_update_type get_plane_info_update_type(
 		const struct dc_surface_update *u,
 		int surface_index)
 {
-	struct dc_plane_info temp_plane_info = { 0 };
+	struct dc_plane_info temp_plane_info;
 
 	if (!u->plane_info)
 		return UPDATE_TYPE_FAST;
 
+	temp_plane_info = *u->plane_info;
+
 	/* Copy all parameters that will cause a full update
 	 * from current surface, the rest of the parameters
 	 * from provided plane configuration.
@@ -1115,10 +1117,6 @@ static enum surface_update_type get_plane_info_update_type(
 	temp_plane_info.stereo_format = u->surface->stereo_format;
 	temp_plane_info.tiling_info = u->surface->tiling_info;
 
-	/* Special Validation parameters */
-	temp_plane_info.format = u->plane_info->format;
-	temp_plane_info.per_pixel_alpha = u->plane_info->per_pixel_alpha;
-
 	if (surface_index == 0)
 		temp_plane_info.visible = u->plane_info->visible;
 	else
-- 
2.7.4