util: Include in Android builds

This patch fixes Android build failures by including src/util directory
in compilation. Files inside of this directory are compiled into
libmesa_util static library and linked with resulting libGLES_mesa.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
st/mesa: Generate format_info.c in Android builds

Current Android makefiles lack generation of format_info.c, which is
a dependency of main/format.c. This patch adds necessary code to
Android.gen.mk.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
st/mesa: Fix paths used in Android builds

With current makefiles the build fails because source and build paths
are generated incorrectly. With Android build system the top_srcdir and
top_builddir variables are undefined and all paths are relative to where
Android.mk is located. This ends up with path likes
external/mesa/src/mesa/src/mesa/ for both source and build paths, which
are obviously wrong.

This patch fixes this by overriding resulting SRCDIR and BUILDDIR
variables with empty string, so that paths end up being relative to
Android.mk file again. Appending correct build path to generated files
is already done in Android.gen.mk.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
glsl: Fix no return value for non-void function

Even though scope outside the switch statement is unreachable, the
compiler generates a warning, which is treated as error by Android
toolchain. Fix the issue by adding dummy return statement.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
gallium: Add driver for Samsung FIMG-3DSE GPU

This patch adds a Gallium driver for Samsung FIMG-3DSE, OpenGL ES
2.0-compliant GPU. The driver is called openfimg.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Implement CSO refcounting

It is necessary to avoid pointer collission caused by driver internal
dirty tracking and state caching.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Remove now unneeded draw cache invalidation by vtx state

Vertex state is now reference counted and draw cache entry holds a
reference on respective vertex state object, so pointer collision is no
longer possible.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Implement thread-safe resource timestamping

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: Implement invalidation of repacked draw cache

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>