nine: Add state tracker nine for Direct3D9

Work of Joakim Sindholt (zhasha) and Christoph Bumiller (chrisbmr).
v2 Small fixies and sync with latest Mesa by David Heidelberger (okias).
v3 Build improvements by Emil Velikov (xexaxo).
v4 Modified to use directly PIPE_CAP_VIDEO_MEMORY
instead of PIPE_CAP_DEVICE_MEMORY_SIZE.
v5 Merged few small fixes by okias
v6 define to not use indirect drawing
v7 allow D3DLOCK_NOOVERWRITE for LockRect, make Osu game works
v8 build fixes by okias
v9 build fix without opencl by mannerov
v10 build fix after configure.ac changes by okias
v11 clean up fixes by okias

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
nine: Add drirc options

Signed-off-by: Axel Davy <axel.davy@ens.fr>
nine: Implement threadpool

Useful for PRIME setups.

Signed-off-by: Axel Davy <axel.davy@ens.fr>