1. 18 3月, 2015 3 次提交
    • Y
      drm/i915: Fix trivial typos in comments and warning message · fd0753cf
      Yannick Guerrini 提交于
      Change 'mutliple' to 'multiple'
      Change 'mutlipler' to 'multiplier'
      Change 'Haswel' to 'Haswell'
      Signed-off-by: NYannick Guerrini <yguerrini@tomshardware.fr>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      fd0753cf
    • M
      drm/i915: Use plane->state->fb in watermark code (v2) · 59bea882
      Matt Roper 提交于
      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: NMatt Roper <matthew.d.roper@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      59bea882
    • M
      drm/i915: Kill intel_crtc->cursor_{width, height} (v2) · 3dd512fb
      Matt Roper 提交于
      The cursor size fields in intel_crtc just duplicate the data from
      cursor->state.crtc_{w,h} so we don't need them any more.  Worse, their
      use in the watermark code actually introduces a subtle bug since they
      don't get updated to mirror the state values until the plane commit
      stage, which is *after* we've already used them to calculate new
      watermark values.  This happens because we had to move watermark updates
      slightly earlier (outside vblank evasion) in commit
      
              commit 32b7eeec
              Author: Matt Roper <matthew.d.roper@intel.com>
              Date:   Wed Dec 24 07:59:06 2014 -0800
      
                  drm/i915: Refactor work that can sleep out of commit (v7)
      
      Dropping the intel_crtc fields and just using the state values (which
      are properly updated by the time watermark updates happen) should solve
      the problem.
      
      Aside from the actual removal of the struct fields (which are formatted
      in a way that I couldn't figure out how to match in Coccinelle), the
      rest of this patch was generated via the following semantic patch:
      
              // Drop assignment
              @@
              struct intel_crtc *C;
              struct drm_plane_state S;
              @@
              (
              - C->cursor_width = S.crtc_w;
              |
              - C->cursor_height = S.crtc_h;
              )
      
              // Replace usage
              @@
              struct intel_crtc *C;
              expression E;
              @@
              (
              - C->cursor_width
              + C->base.cursor->state->crtc_w
              |
              - C->cursor_height
              + C->base.cursor->state->crtc_h
              |
              - to_intel_crtc(E)->cursor_width
              + E->cursor->state->crtc_w
              |
              - to_intel_crtc(E)->cursor_height
              + E->cursor->state->crtc_h
              )
      
      v2: Rebase
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Joe Konno <joe.konno@linux.intel.com>
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89346Signed-off-by: NMatt Roper <matthew.d.roper@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      3dd512fb
  2. 10 3月, 2015 11 次提交
  3. 07 3月, 2015 19 次提交
  4. 06 3月, 2015 6 次提交
  5. 05 3月, 2015 1 次提交