st/nine: Improve D3DQUERYTYPE_TIMESTAMP
authorXavier Bouchoux <xavierb@gmail.com>
Sat, 21 Feb 2015 18:56:40 +0000 (19:56 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 29 Apr 2015 06:28:10 +0000 (08:28 +0200)
commitd838fe8243aa0e96b198c876c1b5d79c098d1c0d
tree4fad6c39a2ec31e1fff7c552e8b317bc3aebfa23
parent851abb91459b13d28303f54605b8da51c24efcb7
st/nine: Improve D3DQUERYTYPE_TIMESTAMP

Avoid blocking when retrieving D3DQUERYTYPE_TIMESTAMP result with
NineQuery9_GetData(), when D3DGETDATA_FLUSH is not specified.
This mimics Win behaviour and gives slightly better performance
for some games.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb@gmail.com>
src/gallium/state_trackers/nine/query9.c