linux/drivers/gpu/drm/meson
Maxime Ripard bf39607c16
drm/fourcc: Pass the format_info pointer to drm_format_plane_width/height
So far, the drm_format_plane_height/width functions were 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. The parameters order have also be changed to match the
other functions prototype.

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/514af1d489d80b8b1767e3716b663ce5103da6eb.1558002671.git-series.maxime.ripard@bootlin.com
2019-05-20 13:35:24 +02:00
..
Kconfig drm/meson: Use optional canvas provider 2018-11-13 11:51:34 +01:00
Makefile drm/meson: exclusively use the canvas provider module 2019-03-20 09:28:39 +01:00
meson_crtc.c drm/meson: Add G12A support for plane handling in CRTC driver 2019-04-09 11:25:58 +02:00
meson_crtc.h
meson_drv.c drm-misc-next for v5.2: 2019-04-24 10:12:50 +10:00
meson_drv.h drm/meson: Add G12A support for plane handling in CRTC driver 2019-04-09 11:25:58 +02:00
meson_dw_hdmi.c Linux 5.1-rc5 2019-04-15 15:51:49 +10:00
meson_dw_hdmi.h drm/meson: Add G12A support for the DW-HDMI Glue 2019-04-09 11:26:08 +02:00
meson_overlay.c drm/fourcc: Pass the format_info pointer to drm_format_plane_width/height 2019-05-20 13:35:24 +02:00
meson_overlay.h drm/meson: Support Overlay plane for video rendering 2018-11-13 13:27:51 +01:00
meson_plane.c drm/meson: Add G12A support for OSD1 Plane 2019-04-09 11:25:02 +02:00
meson_plane.h
meson_registers.h drm/meson: Add registers for G12A SoC 2019-04-09 11:24:48 +02:00
meson_vclk.c drm/meson: Add G12A Video Clock setup 2019-04-09 11:26:04 +02:00
meson_vclk.h drm/meson: Add support for VIC alternate timings 2018-11-27 16:39:49 +01:00
meson_venc.c drm/meson: Add G12A support for CVBS Encoder 2019-04-09 11:26:02 +02:00
meson_venc.h drm/meson: Make DMT timings parameters and pixel clock generic 2018-07-16 11:14:59 +02:00
meson_venc_cvbs.c drm/meson: Add G12A support for CVBS Encoder 2019-04-09 11:26:02 +02:00
meson_venc_cvbs.h
meson_viu.c drm/meson: Make some functions static 2019-04-17 20:19:13 +02:00
meson_viu.h drm/meson: Fix an Alpha Primary Plane bug on Meson GXL/GXM SoCs 2018-12-03 11:12:09 +01:00
meson_vpp.c drm/meson: Add G12A Support for VPP setup 2019-04-09 11:24:54 +02:00
meson_vpp.h drm/meson: Add support for HDMI venc modes and settings 2017-04-04 17:49:31 +02:00