]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Bad pixel formats can't reach the sprite code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 31 Oct 2012 15:50:21 +0000 (17:50 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:14 +0000 (23:51 +0100)
commit488a2c499e630fa1f22fdd9e0dc75166636df053
tree89c554131e8fffe1d6d055e503859d0ab9418a04
parent27504f097ccaf4cd191a8b9e40710a00992b68ca
drm/i915: Bad pixel formats can't reach the sprite code

The framebuffer pixel format is already checked by the common code.
So there's no way an invalid format could reach the driver. So instead
of falling back to a default format, call BUG().

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_sprite.c