drm: Use C8 instead of RGB332 when determining the format from depth/bpp
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Jan 2013 17:43:38 +0000 (19:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 14:59:03 +0000 (06:59 -0800)
commitd8a5f7fe8d632290ecbb6f692b98136957abe21a
tree7290e02ef42631b0ac0d0a25f7aa750d0b677926
parentd8fe02dde5c0aa474a32fe13d0743be515bb41dc
drm: Use C8 instead of RGB332 when determining the format from depth/bpp

commit d84f031bd230fdf9c3b7734940c859bf28b90219 upstream.

Support for real RGB332 is a rarity, most hardware only really support
C8. So use C8 instead of RGB332 when determining the format based on
depth/bpp.

This fixes 8bpp fbcon on i915, since i915 will only accept C8 and not
RGB332.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59572
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Tested-by: mlsemon35@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_crtc.c