2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 06:04:05 +08:00
linux-next/drivers/gpu/drm/arm
Maxime Ripard f3e9632cb6
drm: Remove users of drm_format_(horz|vert)_chroma_subsampling
drm_format_horz_chroma_subsampling and drm_format_vert_chroma_subsampling
are basically a lookup in the drm_format_info table plus an access to the
hsub and vsub fields 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 these functions 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.

This is amplified by the fact that most of the time the callers will have
to retrieve both the vsub and hsub fields, meaning that they would perform
twice the lookup.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/6b3cceb8161e2c1d40c2681de99202328b0a8abc.1558002671.git-series.maxime.ripard@bootlin.com
2019-05-20 13:33:11 +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/arm/malidp: Specified the rotation memory requirements for AFBC YUV formats 2019-03-12 18:25:08 +00: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: Remove users of drm_format_(horz|vert)_chroma_subsampling 2019-05-20 13:33:11 +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