nv50: fix PIPE_QUERY_TIMESTAMP_DISJOINT, based on nvc0
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 23 May 2015 16:50:25 +0000 (18:50 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 23 May 2015 17:00:55 +0000 (19:00 +0200)
commitc783fd476c61fae41bddead4e47740e23d0cf2eb
tree4aebe83823696e744c6785d117bc14ae5e18c54e
parent217301843aea0299ab245e260b20af7ad250e9d8
nv50: fix PIPE_QUERY_TIMESTAMP_DISJOINT, based on nvc0

PIPE_QUERY_TIMESTAMP_DISJOINT could not work because q->ready was always
set to FALSE. To fix this issue, add more different states for queries
according to nvc0.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_query.c