drm/kms/fb: check for depth changes from userspace for resizing.
authorDave Airlie <airlied@redhat.com>
Thu, 7 Jan 2010 23:27:08 +0000 (09:27 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jan 2010 03:18:19 +0000 (13:18 +1000)
commit7751b8cb754f1bc48b20c1145d43c7651d4951fd
tree401b821c573097b72a402f91c2e3482e15836ab7
parent992dc9ae61f86db3b8ef9f8d6b7df898c90e8c08
drm/kms/fb: check for depth changes from userspace for resizing.

If userspace (plymouth in this case) asks for a deeper depth,
refuse it as well due to lack of resizing.

This fixes an issue since < 32MB cards went to 8bpp and plymouth
crashes on startup.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c