gallium/auxiliary: implement sw_probe_wrapped

This is useful for Gallium-Nine.

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
configure: add configurable pipe-driver location

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
gallium/auxiliary: prefer intrinsic

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
gallium/auxiliary: add inc and dec alternative with return

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
gallium/auxiliary: add contained and rect checks

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
gallium/auxiliary: add dump functions for Nine

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
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>