Commit 80b4c5a8 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: fix dc_check_update_surfaces_for_stream memcmp sequence

Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7a096334
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment