]> git.baikalelectronics.ru Git - kernel.git/commit
drm/arm/malidp:- Use the newly introduced malidp_format_get_bpp() instead of relying...
authorAyan Kumar Halder <ayan.halder@arm.com>
Mon, 19 Nov 2018 14:14:06 +0000 (14:14 +0000)
committerAyan kumar halder <ayan.halder@arm.com>
Tue, 12 Mar 2019 18:25:09 +0000 (18:25 +0000)
commitd3a01ed76e4b375e306ae93533e54902b4ca56ab
treedc69c412751fbd2e2430f14c63e21d9dd472ed2a
parentaf0cbb6ad013e68683fd445e29d3de839564e3b0
drm/arm/malidp:- Use the newly introduced malidp_format_get_bpp() instead of relying on cpp for calculating framebuffer size

Formats like DRM_FORMAT_VUY101010, DRM_FORMAT_YUV420_8BIT and
DRM_FORMAT_YUV420_10BIT are expressed in bits per pixel as they have a non
integer value of cpp (thus denoted as '0' in drm_format_info[]). Therefore,
the calculation of AFBC framebuffer size needs to use malidp_format_get_bpp().

Changes since v3 (series):
- Added the ack
- Rebased on the latest drm-misc-next

Signed-off-by: Ayan Kumar halder <ayan.halder@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Link: https://patchwork.freedesktop.org/patch/291766/?series=57895&rev=1
drivers/gpu/drm/arm/malidp_drv.c