linux/drivers/gpu/drm/arm
Maxime Ripard 24c478ead0
drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp
So far, the drm_format_plane_cpp function was operating on the format's
fourcc and was doing a lookup to retrieve the drm_format_info structure and
return the cpp.

However, this is inefficient since in most cases, we will have the
drm_format_info pointer already available so we shouldn't have to perform a
new lookup. Some drm_fourcc functions also already operate on the
drm_format_info pointer for that reason, so the API is quite inconsistent
there.

Let's follow the latter pattern and remove the extra lookup while being a
bit more consistent. In order to be extra consistent, also rename that
function to drm_format_info_plane_cpp and to a static function in the
header to match the current policy.

Reviewed-by: Emil Velikov <emil.velikov@collabora.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/32aa13e53dbc98a90207fd290aa8e79f785fb11e.1558002671.git-series.maxime.ripard@bootlin.com
2019-05-20 13:33:46 +02:00
..
display - A handful of fixes from -next that just missed feature freeze 2019-05-09 11:04:00 +10:00
hdlcd_crtc.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
hdlcd_drv.c drm/irq: Don't check for DRIVER_HAVE_IRQ in drm_irq_(un)install 2019-01-29 15:45:06 +01:00
hdlcd_drv.h drm/arm/hdlcd: Use drm_fb_cma_fbdev_init/fini() 2018-07-31 16:31:50 +01:00
hdlcd_regs.h
Kconfig drm/komeda: komeda_dev/pipeline/component definition and initialzation 2019-01-14 11:09:23 +00:00
Makefile drm/komeda: komeda_dev/pipeline/component definition and initialzation 2019-01-14 11:09:23 +00:00
malidp_crtc.c drm/mali: Convert to using __drm_atomic_helper_crtc_reset() for reset. 2019-04-25 11:02:04 +02:00
malidp_drv.c drm/arm/malidp: Added support for AFBC modifiers for all layers except DE_SMART 2019-03-12 18:25:10 +00:00
malidp_drv.h drm/arm/malidp:- Define a common list of AFBC format modifiers supported for DP500, DP550 and DP650 2019-03-12 18:25:07 +00:00
malidp_hw.c drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp 2019-05-20 13:33:46 +02:00
malidp_hw.h drm/arm/malidp: Specified the rotation memory requirements for AFBC YUV formats 2019-03-12 18:25:08 +00:00
malidp_mw.c drm: Remove users of drm_format_num_planes 2019-05-20 13:32:57 +02:00
malidp_mw.h drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_planes.c drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp 2019-05-20 13:33:46 +02:00
malidp_regs.h drm/arm/malidp: Set the AFBC register bits if the framebuffer has AFBC modifier 2019-03-12 18:25:06 +00:00