]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drm/i915: Disable/restore all sprite planes around modeset
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 4 Jun 2013 10:49:04 +0000 (13:49 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jun 2013 11:47:39 +0000 (13:47 +0200)
commitbb53d4aeac59079240605ef9269166f204612b78
treead62cde3a18a4afd3b8eeae0e7eff17f999c0f45
parentb85dfcf9240043e81ba13b1bc99afc8645bf4c6a
drm/i915: Disable/restore all sprite planes around modeset

Disable/restore sprite planes around mode-set just like we do for the
primary and cursor planes. Now that we have working sprite clipping,
this actually works quite decently.

Previosuly we didn't even bother to disable sprites when changing mode,
which could lead to a corrupted sprite appearing on the screen after a
modeset (at least on my IVB). Not sure if all hardware generations would
be so forgiving when enabled sprites end up outside the pipe dimensons.

v2: Disable rather than enable sprites in ironlake_crtc_disable()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c