drm/i915: Eliminate rmw from .update_primary_plane()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 8 Aug 2014 18:51:10 +0000 (21:51 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 Aug 2014 18:53:37 +0000 (20:53 +0200)
commitf45651bae2ee73ae551699d481f76aa6ad92138f
treef649e40089135c23572ddcf6c7a622ccd99e24ce
parent4fa790421c10e5c9c62406655c06d97a94555d54
drm/i915: Eliminate rmw from .update_primary_plane()

Move the entire DSPCNTR register setup into the .update_primary_plane()
functions. That's where it belongs anyway and it'll also help 830M which
has the extra problem that plane registers reads will return the value
latched at the last vblank, not the value that was last written.

Also move DSPPOS and DSPSIZE setup there.

v2: Don't move variable initialization to avoid churn later

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c