Skip to content

Commit

Permalink
drm/i915: Reduce clutter by using the local plane pointer
Browse files Browse the repository at this point in the history
No need to go dig throguh intel_crtc->base.cursor when we already have
the same thing as 'plane' local variable.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ville Syrjälä authored and Daniel Vetter committed Mar 17, 2015
1 parent c5da514 commit 3749f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -12372,7 +12372,7 @@ intel_check_cursor_plane(struct drm_plane *plane,

finish:
if (intel_crtc->active) {
if (intel_crtc->base.cursor->state->crtc_w != state->base.crtc_w)
if (plane->state->crtc_w != state->base.crtc_w)
intel_crtc->atomic.update_wm = true;

intel_crtc->atomic.fb_bits |=
Expand Down

0 comments on commit 3749f46

Please sign in to comment.