summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/hud
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2014-07-07 23:49:14 +0200
committerMartin Peres <[email protected]>2015-05-06 00:03:35 +0300
commit546ec980f850fee067fd1dddad19a8dfd6b7e672 (patch)
treee1dc8e58f75d3f0ba8b39c68a5e03e36c855421c /src/gallium/auxiliary/hud
parentd5b2832c1151337d37217a30bcb55d7f90dd1b47 (diff)
gallium: replace pipe_driver_query_info::max_value by a union
This allows queries to return different numeric types. Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Martin Peres <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud')
-rw-r--r--src/gallium/auxiliary/hud/hud_driver_query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/hud/hud_driver_query.c b/src/gallium/auxiliary/hud/hud_driver_query.c
index 1c8c485bb2f..603aba7e8cd 100644
--- a/src/gallium/auxiliary/hud/hud_driver_query.c
+++ b/src/gallium/auxiliary/hud/hud_driver_query.c
@@ -208,6 +208,7 @@ hud_driver_query_install(struct hud_pane *pane, struct pipe_context *pipe,
uses_byte_units = query.type == PIPE_DRIVER_QUERY_TYPE_BYTES;
hud_pipe_query_install(pane, pipe, query.name, query.query_type, 0,
- query.max_value, uses_byte_units);
+ query.max_value.u64, uses_byte_units);
+
return TRUE;
}