nv50: fix 64-bit queries with HUD, based on nvc0
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 May 2015 18:06:19 +0000 (20:06 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 22 May 2015 09:39:23 +0000 (11:39 +0200)
commit867fd2b5f586085c137af264e3eb640094e88526
treefc444b34a6dd1803d9f6412c842b871f8655c0de
parent6921ea42a17c715c4b5b2d0092f9b9f4df42b10c
nv50: fix 64-bit queries with HUD, based on nvc0

A sequence number is written for 32-bits queries to make sure they are
ready, but not for 64-bits queries. Instead, we have to use a fence in
order to fix the HUD because it doesn't wait until the result is ready.

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