linux_dsm_epyc7002/drivers/gpu/drm/zte
Maxime Ripard 05c452c115
drm: Remove users of drm_format_num_planes
drm_format_num_planes() is basically a lookup in the drm_format_info table
plus an access to the num_planes field of the appropriate entry.

Most drivers are using this function while having access to the entry
already, which means that we will perform an unnecessary lookup. Removing
the call to drm_format_num_planes is therefore more efficient.

Some drivers will not have access to that entry in the function, but in
this case the overhead is minimal (we just have to call drm_format_info()
to perform the lookup) and we can even avoid multiple, inefficient lookups
in some places that need multiple fields from the drm_format_info
structure.

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/5ffcec9d14a50ed538e37d565f546802452ee672.1558002671.git-series.maxime.ripard@bootlin.com
2019-05-20 13:32:57 +02:00
..
Kconfig drm: zte: support hdmi audio through spdif 2017-01-28 10:17:39 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zx_common_regs.h drm: zte: move CSC register definitions into a common header 2017-05-04 13:51:52 +08:00
zx_drm_drv.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_drm_drv.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_hdmi_regs.h drm: zte: support hdmi audio through spdif 2017-01-28 10:17:39 +08:00
zx_hdmi.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_plane_regs.h drm: zte: move CSC register definitions into a common header 2017-05-04 13:51:52 +08:00
zx_plane.c drm: Remove users of drm_format_num_planes 2019-05-20 13:32:57 +02:00
zx_plane.h drm: zte: add .atomic_disable hook to disable graphic layer 2017-01-28 10:17:40 +08:00
zx_tvenc_regs.h drm: zte: add tvenc driver support 2017-01-28 11:51:23 +08:00
zx_tvenc.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_vga_regs.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_vga.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_vou_regs.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_vou.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_vou.h drm/zte: Stop consulting plane->crtc 2018-03-29 19:14:21 +03:00