]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc18b3d36fb4787df26c40a27d1295b8a5984505
treed2cee9e3139ae3e4fa3dc9ed4d42383b67cf917d
parent84142b30a0140d26b7d05f2173cf9af6aaf66724
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