drm/core: Calculate bpp in afbc helper
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Tue, 31 Mar 2020 15:53:08 +0000 (17:53 +0200)
committerAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Wed, 1 Apr 2020 12:11:22 +0000 (14:11 +0200)
commitbcf6293d7ae931159fac4fbd9924b0276f1edabd
treed2cee9e3139ae3e4fa3dc9ed4d42383b67cf917d
parent88f1b29a44b197852828d3aba5fefa0082d377ff
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
Documentation/gpu/todo.rst
drivers/gpu/drm/drm_gem_framebuffer_helper.c
include/drm/drm_framebuffer.h