]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Avoid underruns when disabling sprites
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Dec 2013 13:51:41 +0000 (15:51 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Dec 2013 12:17:58 +0000 (13:17 +0100)
commit1bd09ec7ad314313f15db733c7e9cb2225d95453
tree39431bf05c0abb9ad9c93fc590441dfa1300434d
parentefb31d15dc16150a7a41947d712822e703c3e923
drm/i915: Avoid underruns when disabling sprites

As the watermark registers aren't double bufferd, clearing the
watermarks immediately after writing the sprite registers can be
hazardous.

Until we have something better, add a wait for vblank between the
two steps to make sure the sprite no longer needs the watermark
levels before we clear them.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c