drm/cirrus: allow 32bpp framebuffers for cirrus drm
authorZach Reizner <zachr@google.com>
Wed, 29 Oct 2014 18:04:24 +0000 (11:04 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Nov 2014 01:42:46 +0000 (11:42 +1000)
commit8975626ea35adcca561f8a81dedccfbc5dd8ec72
treeacf4290d5b83894212eb71dc51d2a5c088fa67b3
parentebfdd6d5e837bd1c170b9bdd749fee2a4183a7f5
drm/cirrus: allow 32bpp framebuffers for cirrus drm

This patch allows framebuffers for cirrus to be created with
32bpp pixel formats provided that they do not violate certain
restrictions of the cirrus hardware.

v2: Use pci resource length for vram size.

Signed-off-by: Zach Reizner <zachr@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_drv.h
drivers/gpu/drm/cirrus/cirrus_fbdev.c
drivers/gpu/drm/cirrus/cirrus_main.c