Merge pull request #8 from mike-sc/gc880

Gc880
driver: fix the build on !imx6_v4

gc_abi.h used `uint32_t` which was not yet defined there,
resulting in a compile error. Fix by simply using `unsigned int` as
that's what the kernel does too.
rnndb: add DMA debug register description

Info from imx6_v4_0_0 driver
driver: sanitize ETNA_PIPE usage to etna_pipe_context

We were abusing the priv field in struct pipe_context,
change this to use Mesa "inheritance" like for the other objects.
driver: compute component count for varyings

Find out which bits are used for PS inputs, and set the
varying configuration accordingly.
driver: remove newlines from DBG() messages
driver: implement clear_render_target, resource_copy_region and clear_depth_stencil

Implement clear_render_target, resource_copy_region and
clear_depth_stencil using Gallium blitter.
tools: add i.mx6 duallite to gpus comparison
driver: fix scissors

Scissor bottom state was set wrongly, resulting in wild and various
problems from display corruption to crashes when scissor was enabled.
driver: associate resources with last bound context

This is a bit of a hack, as it does not take into account shared
contexts or contexts going away, but it is better than we have now.
driver: fix double free on context destruction
driver: split up etna_pipe a bit

etna_pipe is much too large, split resource handling and
shader state handling off into separate compile units.
driver: use gallium function for translate_vertex_count

u_decomposed_prims_for_vertices in u_prim.h provides exactly the same
functionality.
driver: add basic support PIPE_TRANSFER_READ

At least implement basic support by distinguishing reads from writes.
The more complicated case of supertiled surfaces has to be handled
later.

Auto mipmap generation benefits from this.
tools: add etnaviv_gdb plugin

GDB plugin for etnaviv driver debugging. This needs gdb 7.5+ to work.

usage (from gdb):
   source /path/to/etnaviv_gdb.py

Commands:
   gpu-state (prefix|uniforms)
       Show full GPU state (default) or only registers with a certain prefix.
       The special prefix 'uniforms' shows only the shader uniforms.
   gpu-dis
       Disassemble the current shaders.
tools: don't autorepeat etnaviv gdb commands
etnaviv: add initial profiling support

Add API for querying the profiling counters.
Also add a demo `viv_profile` to print the current values of the counters
to the console.
etnaviv: profile 2D
driver: implement CMP instruction

New instruction works, but found an restriction in the ISA:
- it is not allowed to use multiple uniforms in one instruction.
If this is done the result is undefined, so need to work around this
by using a temporary.
Emit all vertex streams. Enables mesa to render few glmark tests on gc880.