OpenCloudOS-Kernel/drivers/gpu/drm/arm
Alexandru Gheorghe 89578d04b5 drm/malidp: Fix writeback in NV12
When we want to writeback to memory in NV12 format we need to program
the RGB2YUV coefficients. Currently, we don't program the coefficients
and NV12 doesn't work at all.

This patchset fixes that by programming a sane default(bt709, limited
range) as rgb2yuv coefficients.

In the long run, probably we need to think of a way for userspace to
be able to program that, but for now I think this is better than not
working at all or not advertising NV12 as a supported format for
memwrite.

Changes since v1:
 - Write the rgb2yuv coefficients only once, since we don't change
   them at all, just write them the first time NV12 is programmed,
   suggested by Brian Starkey, here [1]

[1] https://lists.freedesktop.org/archives/dri-devel/2018-August/186819.html

Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
2018-09-21 10:55:00 +01:00
..
Kconfig drm/arm: make fbdev support really optional 2016-07-18 09:11:42 +02:00
Makefile drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
hdlcd_crtc.c drm/arm/hdlcd: Reject atomic commits that disable only the plane 2018-07-31 16:31:50 +01:00
hdlcd_drv.c drm/arm/hdlcd: Reject atomic commits that disable only the plane 2018-07-31 16:31:50 +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
malidp_crtc.c drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_drv.c drm: mali-dp: Call drm_crtc_vblank_reset on device init 2018-09-21 10:54:56 +01:00
malidp_drv.h drm: mali-dp: Add debugfs file for reporting internal errors 2018-07-05 15:19:05 +01:00
malidp_hw.c drm/malidp: Fix writeback in NV12 2018-09-21 10:55:00 +01:00
malidp_hw.h drm/malidp: Fix writeback in NV12 2018-09-21 10:55:00 +01:00
malidp_mw.c drm/malidp: Fix writeback in NV12 2018-09-21 10:55:00 +01:00
malidp_mw.h drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_planes.c drm/mali-dp: Rectify the width and height passed to rotmem_required() 2018-06-18 18:08:43 +01:00
malidp_regs.h drm/malidp: Fix writeback in NV12 2018-09-21 10:55:00 +01:00