st/nine: Queries: Fix D3DISSUE_END behaviour.
authorAxel Davy <axel.davy@ens.fr>
Mon, 24 Nov 2014 22:26:46 +0000 (23:26 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 3 Dec 2014 15:39:24 +0000 (16:39 +0100)
commiteac0b9b68a14719be01bbabd8d3807d81694685b
tree8ba1f7fcd8595334fcc6d8af16388fd725a6ccfa
parentca0588d1a1e61404687fb6a6bc4857819fa46e2e
st/nine: Queries: Fix D3DISSUE_END behaviour.

Issuing D3DISSUE_END should:
. reset previous queries if possible
. end the query

Previous behaviour wasn't calling end_query for
queries not needing D3DISSUE_BEGIN, nor resetting
previous queries.

This fixes several applications not launching properly.

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Tested-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/query9.c