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)
commitfc04023fafecf19ebd09278d8d67dc5ed1f68b46
tree25acc41475384d9d364b6278d3cceea0139ac786
parentfe4cd8476928a66e109ab50a430362fcee8a5716
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