st/nine: Fix D3DQUERYTYPE_TIMESTAMPFREQ query
authorXavier Bouchoux <xavierb@gmail.com>
Sun, 8 Feb 2015 14:56:15 +0000 (15:56 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 29 Apr 2015 06:28:10 +0000 (08:28 +0200)
commit851abb91459b13d28303f54605b8da51c24efcb7
tree7a82b04cab8bf7fb9d1a166f5388fb42882ac866
parent31bb4cd5c6e3d696b2f240c270a257abfcd8848f
st/nine: Fix D3DQUERYTYPE_TIMESTAMPFREQ query

D3DQUERYTYPE_TIMESTAMPFREQ is supposed to give the frequency
at which the clock of D3DQUERYTYPE_TIMESTAMP runs.

PIPE_QUERY_TIMESTAMP returns a value in ns, thus the corresponding
frequency is 1000000000.
PIPE_QUERY_TIMESTAMP_DISJOINT returns the frequency at which
PIPE_QUERY_TIMESTAMP value is updated. It isn't always
1000000000.

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