etnaviv: Xv: add etnaviv textured adapter

Add a textured Xv adapter which can render YUV422 packed and YUV420
planar formats.  This is done using a two stage blit - first stage
scales vertically, preferably to a tiled buffer, followed by a
second stage scaling horizontally.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
etnaviv: Xv: disable tiled YUY2 support for stage1 bo

Tiled support does not appear to work with the video rasteriser.
Disable it for the time being.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
etnaviv: Xv: align image buffer sizes to the MMU page size

Etnadrm requires user buffers to be aligned to the CPU page size in
order to map them directly to the GPU.  Arrange for us to report
that the image size is a multiple of the CPU page size.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
man: update the man page

Update the man page to include information about Freescale iMX6 support,
the GPU acceleration modules, and details about the XV support.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
etnaviv: Xv: initial xvbo hacks (WIP)

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
src: dri2: allocate scanout pixmaps for window drawables

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
etnaviv: dri2: pass name to select appropriate etna driver

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
build: Fix header detection logic for libgal

We should be testing if ACCEL_GALCORE=yes rather than !=yes.  If
we have explicitely enabled galcore with configure flags and the
headers are missing then generate an error and stop. Otherwise
just set ACCEL_GALCORE=no.

Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com>
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
build: Add support for using libetnaviv as a shared library

Now that libetnaviv has been split out as its own shared library
we want to add pkg-config support for autodetecting the libs and
cflags.  Here we test if the static flags are set, if not then
try and auto configure the flags using pkg-config.

Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com>
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
build: fix test for libetnaviv pkgconfig

The test for libetnaviv pkgconfig resulted in Etnaviv not being linked
at all.  Fix this by inverting the condition, and comparing for 'yes',
meaning all other values result in -letnaviv.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
build: add autoconf check for drm_armada_cache_reap()

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
etnaviv: add etnaviv DRM support

Add support for Christian's Etnaviv DRM interface.  We add this as a
shim between the conventional etnaviv APIs and the kernel DRM
interfaces rather than using libdrm-etnaviv.

The reasoning here is that libdrm-etnaviv requires changes to the
conventional etnaviv interfaces, which make it difficult to build a
common driver core and share that between a pure etnaviv and a libdrm
implementation.

Hence, this includes Christian's etnaviv_drm.h header, with a few
modifications to allow it to be included along side conventional
etnaviv, and also adding support for userptr mapping.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
etnaviv: etnadrm: scan for appropriate cores

Signed-off-by: Russell King <rmk@arm.linux.org.uk>