st/nine: Queries: Use gallium caps to get if queries are supported. (v2)
authorAxel Davy <axel.davy@ens.fr>
Mon, 24 Nov 2014 21:59:21 +0000 (22:59 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 3 Dec 2014 15:39:24 +0000 (16:39 +0100)
commitb0302a95ece423f18a710dea391686e1a6557716
treed2a86ce84ad84e2c2dd6ba7c00d285c7d4c9e937
parent6b35662e30ed873673e539f109a83117176b8bfd
st/nine: Queries: Use gallium caps to get if queries are supported. (v2)

Some queries need the driver to advertise a cap to be supported.
For example r300 doesn't support them.

v2 (David): check also for PIPE_CAP_QUERY_PIPELINE_STATISTICS, fix wine
            tests on r300g

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/query9.c
src/gallium/state_trackers/nine/query9.h