mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
05c452c115
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 |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
zx_common_regs.h | ||
zx_drm_drv.c | ||
zx_drm_drv.h | ||
zx_hdmi_regs.h | ||
zx_hdmi.c | ||
zx_plane_regs.h | ||
zx_plane.c | ||
zx_plane.h | ||
zx_tvenc_regs.h | ||
zx_tvenc.c | ||
zx_vga_regs.h | ||
zx_vga.c | ||
zx_vou_regs.h | ||
zx_vou.c | ||
zx_vou.h |