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>
Mon, 11 Jan 2010 04:36:09 +0000 (14:36 +1000)
commit509c7d83c3b18a50a0bd02afa43c8ee3c7605bc9
tree3fe1ad92723491907bb4d39d9c392ec8f228dd9c
parent89347bb8ef2d0af1ae8d847b7df91e9f04eccf2a
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