]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915/skl: Consider plane rotation when calculating stride in skl_do_mmio_flip
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 20 Oct 2015 15:20:21 +0000 (16:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Oct 2015 06:50:50 +0000 (08:50 +0200)
commit86efe24a85ce8e937db2732b7cd7d9a1394d102e
tree168fe2c1864918364bfd373c4362e602141a3787
parent54bf1ce633f6649b1f3682c25712b9e42acb174b
drm/i915/skl: Consider plane rotation when calculating stride in skl_do_mmio_flip

Previously rotation was ignored and wrong stride programmed
into the plane registers resulting in a corrupt image on screen.

v2: Do not access potentialy old plane state at flip time,
    but store the rotation value at the time of queing the flip.
    (Ville)

v3: No need to pass rotation to intel_queue_mmio_flip since it
    is available in the crtc. (Ville)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Testcase: igt/kms_rotation_crc/primary-rotation-90-flip-stress (SKL)
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Sonika Jindal <sonika.jindal@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h