drm/fb: add more correct 8/16/24/32 bpp fb support.
authorDave Airlie <airlied@redhat.com>
Tue, 6 Oct 2009 03:54:01 +0000 (13:54 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Oct 2009 03:54:01 +0000 (13:54 +1000)
commitb8c00ac5b50b54491657f8b6740db1df50149944
treeb4cfbc0dbb5ba063bcc933d7339504b80dc5c61c
parent068143d38804825d59d951a192cfadd2e22f457d
drm/fb: add more correct 8/16/24/32 bpp fb support.

The previous patches had some unwanted side effects, I've fixed
the lack of 32bpp working, and fixed up 16bpp so it should also work.

this also adds the interface to allow the driver to set a preferred
console depth so for example low memory rn50 can set it to 8bpp.
It also catches 24bpp on cards that can't do it and forces 32bpp.

Tested on r100/r600/i945.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_fb.c
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/radeon/radeon_mode.h
include/drm/drm_fb_helper.h