drm/amd/display: Ignore visible flag when check surface update type.
authorYongqiang Sun <yongqiang.sun@amd.com>
Fri, 31 Mar 2017 17:53:42 +0000 (13:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:22:28 +0000 (17:22 -0400)
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 40a800155fe60a36560252e3c3f7acda4d14d98e..9a3507e743cf210a121aa94adf2e1dca0bf3ccbc 100644 (file)
@@ -1046,10 +1046,10 @@ static enum surface_update_type get_plane_info_update_type(
        temp_plane_info.rotation = u->surface->rotation;
        temp_plane_info.stereo_format = u->surface->stereo_format;
        temp_plane_info.tiling_info = u->surface->tiling_info;
-       temp_plane_info.visible = u->surface->visible;
 
        /* Special Validation parameters */
        temp_plane_info.format = u->plane_info->format;
+       temp_plane_info.visible = u->plane_info->visible;
 
        if (memcmp(u->plane_info, &temp_plane_info,
                        sizeof(struct dc_plane_info)) != 0)