]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Add support for YUV planes.
authorEric Anholt <eric@anholt.net>
Wed, 30 Dec 2015 20:25:44 +0000 (12:25 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 16 Feb 2016 19:24:08 +0000 (11:24 -0800)
commit98b343b6842104949c97f3af10205398fa1756f5
tree25acc41475384d9d364b6278d3cceea0139ac786
parente172e3e16080f445a0458b957d95e0f2b4648c04
drm/vc4: Add support for YUV planes.

This supports 420 and 422 subsampling with 2 or 3 planes, tested with
modetest.  It doesn't set up chroma subsampling position (which it
appears KMS doesn't deal with yet).

The LBM memory is overallocated in many cases, but apparently the docs
aren't quite correct and I'll probably need to look at the hardware
source to really figure it out.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_plane.c
drivers/gpu/drm/vc4/vc4_regs.h