]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check framebuffer stride more thoroughly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 31 Oct 2012 15:50:18 +0000 (17:50 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:12 +0000 (23:51 +0100)
commit3338b16044f169cdd8b88c2af0d8e3e16c63486e
tree0c3598e06d266e35b18a607a200b233330315c76
parent45f4bcafae08607ac8e419e7f450f77f58d8f74c
drm/i915: Check framebuffer stride more thoroughly

Make sure the the framebuffer stride is smaller than 32k. That
seems to be the limit on recent hardware. Not quite sure if
<=Gen4 has smaller limits.

Also when using a tiled memory make sure the object stride matches
the framebuffer stride.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c