linux/drivers/gpu/drm/arm
Ayan Kumar Halder 5e290226b1 drm/arm/malidp:- Define a common list of AFBC format modifiers supported for DP500, DP550 and DP650
We need to define a common list of format modifiers supported by each of
the Mali display processors.

The following are the constraints with AFBC:-

1. AFBC is not supported for the formats defined in
malidp_hw_format_is_linear_only()

2. Some of the formats are supported only with AFBC modifiers. Thus we have
introduced a new function 'malidp_hw_format_is_afbc_only()' which verifies
the same.

3. AFBC_FORMAT_MOD_YTR needs to be provided for any RGB format.

4. Formats <= 16bpp cannot support AFBC_FORMAT_MOD_SPLIT.

5. CBR should not be set for non-subsampled formats.

6. SMART layer does not support framebuffer with AFBC modifiers.
Return -EINVAL for such a scenario.

7. AFBC_FORMAT_MOD_YTR is not supported for any YUV formats.

8. Formats which are subsampled cannot support AFBC_FORMAT_MOD_SPLIT.
However in DP550, YUV_420_10BIT is supported with AFBC_FORMAT_MOD_SPLIT.
This feature has been identified with
MALIDP_DEVICE_AFBC_YUV_420_10_SUPPORT_SPLIT.

9. In DP550 and DP650, for YUYV, the hardware supports different
format-ids to be used with and without AFBC modifier. We have used the
feature 'MALIDP_DEVICE_AFBC_YUYV_USE_422_P2' to identify this
characteristic.

10. DP500 does not support split mode (ie AFBC_FORMAT_MOD_SPLIT). We have
used the feature 'MALIDP_DEVICE_AFBC_SUPPORT_SPLIT' to identify the DPs
which support SPLIT mode.

11. DP550 supports YUV420 with split mode. We have defined the feature
'AFBC_SUPPORT_SPLIT_WITH_YUV_420_10' to identify this characteristic.

Changes since v1:-
- Merged https://patchwork.freedesktop.org/patch/265215/ into this patch
- As Liviu pointed out in the last patch, we can pull the checks outside
of the 'while (*modifiers != DRM_FORMAT_MOD_INVALID)' loop
- Rebased

Changes since v3 (series):
- Added the ack
- Rebased on the latest drm-misc-next

Signed-off-by: Ayan Kumar halder <ayan.halder@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Link: https://patchwork.freedesktop.org/patch/291762/?series=57895&rev=1
2019-03-12 18:25:07 +00:00
..
display drm/komeda: fix build with drm_modeset_helper.h update 2019-02-11 10:36:00 +01: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: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
malidp_drv.c 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_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:- Define a common list of AFBC format modifiers supported for DP500, DP550 and DP650 2019-03-12 18:25:07 +00:00
malidp_hw.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_mw.c 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_mw.h drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_planes.c 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_regs.h drm/arm/malidp: Set the AFBC register bits if the framebuffer has AFBC modifier 2019-03-12 18:25:06 +00:00