rnndb: update HI and DE state doc from gcx documentation

The gcreg.h from gcx contains quite some register documentation
for HI and DE (2D) state. Integrate this into our xml files
for easier reference and eventual hardware documentation generation.

This may help anyone working on a 2D driver.
fb: implement viv_gpu_top

Displays number of events per second for all
hardware counters in the console. This can be useful to find out
what the GPU is doing.

Still todo: non interactive mode (log statistics to disk), relative
mode (display occupancy), command line parsing, ...
build fix

Some warnings are now treated as errors, bring the less-visited parts
of the source code up to date.
driver: texture alignment, preparation for multi-pipe

Correct texture and RS alignment.
For multi-tiled and multi-super-tiled surfaces (for multiple pixel
pipes) a special texture format is used.
driver: PA_LINE_WIDTH contains the half width

Divide the line width by two to correct line rendering.
Also update documentation.
driver: proper flushing of TS

RS_FLUSH seems to be TS_FLUSH -- ie, the TS_FLUSH command flushes
the internal cache of the tile status. It needs to be invoked after a
manual clear of the TS.
This solves a few corruption and (esp. blockyness) issues.
test2d: add a few 2D engine tests

Having fun with the 2D engine.
Lines, blitting, stretching, filtering, palette expansion, ...
Current tests work on the cubox, which has PE10.
Still has to be tested on PE20 (which is most other vivante hardware).
There are some subtle but possibly significant differences.
test2d: add test for planar video

Deplanarize and scale a frame from Big Buck Bunny using
the video rasterizer.
rnndb: add base context states for vg

Add xml file with basic context registers; no register
meanings figured out yet.
test2d: bitblt2d alpha test

Do some experimentation with alpha blending modes.
test2d: bitblt with 90 degree rotate
etnaviv: make 2d samples work on imx6

Fill in hardwareType in command structures submitted to kernel.
test2d: some minor improvements
etnaviv: solve compiler warnings on imx6 BSP 4.0

Consistently use 64 bit values for handles passed from kernel.
Cast these, and any normal pointers with macros when going from/through
the kernel based on the GC ABI.
etnaviv: query and report kernel version

Only possible for v4+ kernel drivers.
Older drivers are always reported as 2.0.0.0 for now.
documentation update
etnaviv: context support

Rendering can now be done from multiple threads or processes at once.
driver/etnaviv: some minor code cleanups
dump_cmdstream: Add structures description for imx_v4_0_0 driver.
 - Create new option to allow parsing .fdr files created for drivers with 64 bit
   fields in ioctl structure.