drm: Remove users of drm_format_info_plane_cpp
drm_format_info_plane_cpp() basically just returns the cpp array content found in the drm_format_info structure. Since it's pretty trivial, let's remove the function and have the users use the array directly Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/c0a78c87cd0410a1819edad2794ad06543c85bb5.1558002671.git-series.maxime.ripard@bootlin.com
This commit is contained in:
@@ -383,7 +383,7 @@ static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode *
|
||||
int malidp_format_get_bpp(u32 fmt)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(fmt);
|
||||
int bpp = drm_format_info_plane_cpp(info, 0) * 8;
|
||||
int bpp = info->cpp[0] * 8;
|
||||
|
||||
if (bpp == 0) {
|
||||
switch (fmt) {
|
||||
|
@@ -227,7 +227,7 @@ bool malidp_format_mod_supported(struct drm_device *drm,
|
||||
|
||||
if (modifier & AFBC_SPLIT) {
|
||||
if (!info->is_yuv) {
|
||||
if (drm_format_info_plane_cpp(info, 0) <= 2) {
|
||||
if (info->cpp[0] <= 2) {
|
||||
DRM_DEBUG_KMS("RGB formats <= 16bpp are not supported with SPLIT\n");
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user