st/nine: Queries: remove dummy queries
authorAxel Davy <axel.davy@ens.fr>
Mon, 24 Nov 2014 21:40:04 +0000 (22:40 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 3 Dec 2014 15:39:23 +0000 (16:39 +0100)
commit3e48791aea6cb1e21c951360e8d2cbbb27add251
tree0ad4213811131e1e7bbd3cd4f137bd54ab5a03c4
parent79f9a106b90bab7ff305b5f92cb8501d66c497ea
st/nine: Queries: remove dummy queries

Applications are supposed to call CreateQuery with a NULL
ppQuery to know if the query is supported. We supported that.

However when ppQuery was not NULL, we were accepting to create the
query and were creating a dummy query even when the query is not
supported.

Wine has different behaviour. This patch drops the dummy queries
support and matches wine behaviour.

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