diff options
author | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2020-03-31 17:53:08 +0200 |
---|---|---|
committer | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2020-04-01 14:11:22 +0200 |
commit | bcf6293d7ae931159fac4fbd9924b0276f1edabd (patch) | |
tree | d2cee9e3139ae3e4fa3dc9ed4d42383b67cf917d /include/drm/drm_framebuffer.h | |
parent | drm/core: Use proper debugging macro (diff) | |
download | linux-bcf6293d7ae931159fac4fbd9924b0276f1edabd.tar.xz linux-bcf6293d7ae931159fac4fbd9924b0276f1edabd.zip |
drm/core: Calculate bpp in afbc helper
Some drivers (komeda, malidp) don't set anything in cpp. If that is the
case the right value can be inferred from the format. Then the "bpp" member
can be eliminated from struct drm_afbc_framebuffer.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200331155308.6345-3-andrzej.p@collabora.com
Diffstat (limited to 'include/drm/drm_framebuffer.h')
-rw-r--r-- | include/drm/drm_framebuffer.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h index b53c0332f040..be658ebbec72 100644 --- a/include/drm/drm_framebuffer.h +++ b/include/drm/drm_framebuffer.h @@ -331,13 +331,6 @@ struct drm_afbc_framebuffer { * @afbc_size: minimum size of afbc buffer */ u32 afbc_size; - /** - * @bpp: bpp value for this afbc buffer - * To be removed when users such as malidp - * properly store the cpp in drm_format_info. - * New users should not start using this field. - */ - u32 bpp; }; #define fb_to_afbc_fb(x) container_of(x, struct drm_afbc_framebuffer, base) |