summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
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/drivers/svga
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/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 35e5a114b04..b75f0386449 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -568,9 +568,9 @@ svga_get_driver_query_info(struct pipe_screen *screen,
struct pipe_driver_query_info *info)
{
static const struct pipe_driver_query_info queries[] = {
- {"draw-calls", SVGA_QUERY_DRAW_CALLS, 0},
- {"fallbacks", SVGA_QUERY_FALLBACKS, 0},
- {"memory-used", SVGA_QUERY_MEMORY_USED, 0, PIPE_DRIVER_QUERY_TYPE_BYTES}
+ {"draw-calls", SVGA_QUERY_DRAW_CALLS, {0}},
+ {"fallbacks", SVGA_QUERY_FALLBACKS, {0}},
+ {"memory-used", SVGA_QUERY_MEMORY_USED, {0}, PIPE_DRIVER_QUERY_TYPE_BYTES}
};
if (!info)