drm/i915: Use plane->state->fb in watermark code (v2)
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 27 Feb 2015 18:12:01 +0000 (10:12 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Mar 2015 21:29:48 +0000 (22:29 +0100)
commit59bea8822f2d2e038a84750576a002049ad30ce1
tree8bbbb6249722858ffee33633d072973ad7810e45
parent3dd512fbda0d87d1c3fb44bf878b262baee98fb6
drm/i915: Use plane->state->fb in watermark code (v2)

plane->fb is a legacy pointer that not always be up-to-date (or updated
early enough).  Make sure the watermark code uses plane->state->fb so
that we're always doing our calculations based on the correct
framebuffers.

This patch was generated by Coccinelle with the following semantic
patch:

        @@
        struct drm_plane *P;
        @@
        - P->fb
        + P->state->fb

v2: Rebase

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c