diff options
author | Zach Reizner <zachr@google.com> | 2014-10-29 11:04:24 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-11-20 11:42:46 +1000 |
commit | 8975626ea35adcca561f8a81dedccfbc5dd8ec72 (patch) | |
tree | acf4290d5b83894212eb71dc51d2a5c088fa67b3 /drivers/gpu/drm/cirrus/cirrus_drv.h | |
parent | ebfdd6d5e837bd1c170b9bdd749fee2a4183a7f5 (diff) | |
download | op-kernel-dev-8975626ea35adcca561f8a81dedccfbc5dd8ec72.zip op-kernel-dev-8975626ea35adcca561f8a81dedccfbc5dd8ec72.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/cirrus/cirrus_drv.h')
-rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_drv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.h b/drivers/gpu/drm/cirrus/cirrus_drv.h index d44e69d..693a456 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.h +++ b/drivers/gpu/drm/cirrus/cirrus_drv.h @@ -210,6 +210,9 @@ int cirrus_framebuffer_init(struct drm_device *dev, struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *obj); +bool cirrus_check_framebuffer(struct cirrus_device *cdev, int width, int height, + int bpp, int pitch); + /* cirrus_display.c */ int cirrus_modeset_init(struct cirrus_device *cdev); void cirrus_modeset_fini(struct cirrus_device *cdev); |