drm/i915: clean up plane commit functions
[deliverable/linux.git] / drivers / gpu / drm / i915 / intel_display.c
index 39f6b80f990f9523094e664ed38017a42dfd7877..2f50c73653d956abdb153d2788069931008c514a 100644 (file)
@@ -13769,14 +13769,14 @@ intel_commit_primary_plane(struct drm_plane *plane,
        crtc->x = src->x1 >> 16;
        crtc->y = src->y1 >> 16;
 
-       if (intel_crtc->active) {
-               if (state->visible)
-                       /* FIXME: kill this fastboot hack */
-                       intel_update_pipe_size(intel_crtc);
+       if (!intel_crtc->active)
+               return;
 
-               dev_priv->display.update_primary_plane(crtc, plane->fb,
-                                                      crtc->x, crtc->y);
-       }
+       if (state->visible)
+               /* FIXME: kill this fastboot hack */
+               intel_update_pipe_size(intel_crtc);
+
+       dev_priv->display.update_primary_plane(crtc, fb, crtc->x, crtc->y);
 }
 
 static void
@@ -14078,8 +14078,8 @@ intel_commit_cursor_plane(struct drm_plane *plane,
 
        intel_crtc->cursor_addr = addr;
        intel_crtc->cursor_bo = obj;
-update:
 
+update:
        if (intel_crtc->active)
                intel_crtc_update_cursor(crtc, state->visible);
 }
This page took 0.03226 seconds and 5 git commands to generate.