From 546ec980f850fee067fd1dddad19a8dfd6b7e672 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 7 Jul 2014 23:49:14 +0200 Subject: gallium: replace pipe_driver_query_info::max_value by a union MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows queries to return different numeric types. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-by: Martin Peres --- src/gallium/auxiliary/hud/hud_driver_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/hud') diff --git a/src/gallium/auxiliary/hud/hud_driver_query.c b/src/gallium/auxiliary/hud/hud_driver_query.c index 1c8c485..603aba7 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; } -- cgit v1.1