drm/komeda: Adds internal bpp computing for arm afbc only format YU08 YU10
authorLowry Li (Arm Technology China) <Lowry.Li@arm.com>
Tue, 6 Aug 2019 06:31:56 +0000 (06:31 +0000)
committerjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Mon, 12 Aug 2019 10:59:34 +0000 (18:59 +0800)
commita9577f1921255b975da2a47d8f6733b2d6c98193
treebfd6e1d33bdf66aaa0e2c56feea2d538f99b5b5c
parent1109635b292c82e7a2aa15e38edb7c389e34b693
drm/komeda: Adds internal bpp computing for arm afbc only format YU08 YU10

The drm_format_info doesn't have any cpp or block_size (both are zero)
information for arm only afbc format YU08/YU10. we need to compute it
by ourselves.

Changes since v1:
1. Removed redundant warning check in komeda_get_afbc_format_bpp();
2. Removed a redundant empty line;
3. Rebased the branch.

Signed-off-by: Lowry Li (Arm Technology China) <lowry.li@arm.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1565073104-24047-1-git-send-email-lowry.li@arm.com
Link: https://patchwork.freedesktop.org/patch/msgid/1565073104-24047-1-git-send-email-lowry.li@arm.com
drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c
drivers/gpu/drm/arm/display/komeda/komeda_format_caps.h
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c