drm/tests: helpers: Add atomic helpers
[linux-2.6-microblaze.git] / drivers / gpu / drm / drm_atomic_state_helper.c
index 784e63d..519228e 100644 (file)
@@ -275,6 +275,20 @@ void __drm_atomic_helper_plane_state_reset(struct drm_plane_state *plane_state,
                        plane_state->normalized_zpos = val;
                }
        }
+
+       if (plane->hotspot_x_property) {
+               if (!drm_object_property_get_default_value(&plane->base,
+                                                          plane->hotspot_x_property,
+                                                          &val))
+                       plane_state->hotspot_x = val;
+       }
+
+       if (plane->hotspot_y_property) {
+               if (!drm_object_property_get_default_value(&plane->base,
+                                                          plane->hotspot_y_property,
+                                                          &val))
+                       plane_state->hotspot_y = val;
+       }
 }
 EXPORT_SYMBOL(__drm_atomic_helper_plane_state_reset);
 
@@ -338,6 +352,7 @@ void __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane,
        state->fence = NULL;
        state->commit = NULL;
        state->fb_damage_clips = NULL;
+       state->color_mgmt_changed = false;
 }
 EXPORT_SYMBOL(__drm_atomic_helper_plane_duplicate_state);