diff options
author | Rob Clark <robdclark@gmail.com> | 2017-07-11 17:40:13 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-08-22 20:20:39 +0300 |
commit | 466e5606cc21fc75e3c6ce2d16c6ddde48e1e4fa (patch) | |
tree | 2f1e9092a8945cf2ced1cd51e7d49f5d2ca98444 /drivers/gpu/drm/msm/msm_drv.h | |
parent | 38958bab824a7955138c356a16a3f72562fbcef1 (diff) | |
download | linux-466e5606cc21fc75e3c6ce2d16c6ddde48e1e4fa.tar.xz |
drm/msm: add helper to allocate stolen fb
We'll later want to re-use this for state-readback when bootloader
enables display, so that we can create an fb for the initial
plane->state->fb.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index 1b627f2aab8d..db137f3e7dec 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm/msm_drv.h @@ -256,6 +256,8 @@ struct drm_framebuffer *msm_framebuffer_init(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos); struct drm_framebuffer *msm_framebuffer_create(struct drm_device *dev, struct drm_file *file, const struct drm_mode_fb_cmd2 *mode_cmd); +struct drm_framebuffer * msm_alloc_stolen_fb(struct drm_device *dev, + int w, int h, int p, uint32_t format); struct drm_fb_helper *msm_fbdev_init(struct drm_device *dev); void msm_fbdev_free(struct drm_device *dev); |