}
 
 static enum surface_update_type get_plane_info_update_type(
-               const struct dc_surface_update *u)
+               const struct dc_surface_update *u,
+               int surface_index)
 {
        struct dc_plane_info temp_plane_info = { { { { 0 } } } };
 
 
        /* Special Validation parameters */
        temp_plane_info.format = u->plane_info->format;
-       temp_plane_info.visible = u->plane_info->visible;
+
+       if (surface_index == 0)
+               temp_plane_info.visible = u->plane_info->visible;
+       else
+               temp_plane_info.visible = u->surface->visible;
 
        if (memcmp(u->plane_info, &temp_plane_info,
                        sizeof(struct dc_plane_info)) != 0)
 
 static enum surface_update_type det_surface_update(
                const struct core_dc *dc,
-               const struct dc_surface_update *u)
+               const struct dc_surface_update *u,
+               int surface_index)
 {
        const struct validate_context *context = dc->current_context;
        enum surface_update_type type = UPDATE_TYPE_FAST;
        if (!is_surface_in_context(context, u->surface))
                return UPDATE_TYPE_FULL;
 
-       type = get_plane_info_update_type(u);
+       type = get_plane_info_update_type(u, surface_index);
        if (overall_type < type)
                overall_type = type;
 
 
        for (i = 0 ; i < surface_count; i++) {
                enum surface_update_type type =
-                               det_surface_update(core_dc, &updates[i]);
+                               det_surface_update(core_dc, &updates[i], i);
 
                if (type == UPDATE_TYPE_FULL)
                        return type;