aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>2017-06-13 16:31:49 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:08:04 -0400
commit80b4c5a8c1e1856848a440a63accbe029ea3b51b (patch)
tree0991a9049407ee489b58dd5dc1db04666698388e /drivers/gpu
parent7a0963345f859058fa866dd28fe13ca5eff22a87 (diff)
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c8
1 files 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 e518aeddfa58..f5f365b418c2 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