drm/i915: Use new atomic iterator macros in fbc
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 9 Mar 2017 14:52:02 +0000 (15:52 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 13 Mar 2017 11:06:40 +0000 (12:06 +0100)
Use for_each_new_plane_in_state, only the new state is needed.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1489071125-917-3-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_fbc.c

index 17d418b23d7778e76489fe9e3e6ccf0f92c306bd..ded2add18b26122d7f6395d0d5532da26dd21f34 100644 (file)
@@ -1061,7 +1061,7 @@ void intel_fbc_choose_crtc(struct drm_i915_private *dev_priv,
         * plane. We could go for fancier schemes such as checking the plane
         * size, but this would just affect the few platforms that don't tie FBC
         * to pipe or plane A. */
-       for_each_plane_in_state(state, plane, plane_state, i) {
+       for_each_new_plane_in_state(state, plane, plane_state, i) {
                struct intel_plane_state *intel_plane_state =
                        to_intel_plane_state(plane_state);
                struct intel_crtc_state *intel_crtc_state;