nvc0: fix wrong max value for driver queries
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 8 Mar 2015 16:18:07 +0000 (17:18 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 10 Mar 2015 00:47:05 +0000 (20:47 -0400)
commite5cd42ed9abadac8be085eea67049dc1e19ade09
treef12c8d1bcfb48cac71adbef4e7a7c6f6667c40ec
parent13f4963ed2de90680841658af4561ef7ab238406
nvc0: fix wrong max value for driver queries

The maximum value of a Gallium HUD's panel is automatically adjusted
when the current value is greater than the max. If we set the
pipe_query_driver_info::max_value to UINT64_MAX, the maximum value is
never adjusted and this results in a flat line instead of a pretty curve
which is correctly scaled.

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