diff options
author | Samuel Pitoiset <[email protected]> | 2014-07-07 23:49:14 +0200 |
---|---|---|
committer | Martin Peres <[email protected]> | 2015-05-06 00:03:35 +0300 |
commit | 546ec980f850fee067fd1dddad19a8dfd6b7e672 (patch) | |
tree | e1dc8e58f75d3f0ba8b39c68a5e03e36c855421c /src/gallium/drivers/freedreno | |
parent | d5b2832c1151337d37217a30bcb55d7f90dd1b47 (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/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_query.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_query.c b/src/gallium/drivers/freedreno/freedreno_query.c index cb3b49a5f58..6f01e0313c1 100644 --- a/src/gallium/drivers/freedreno/freedreno_query.c +++ b/src/gallium/drivers/freedreno/freedreno_query.c @@ -86,12 +86,12 @@ fd_get_driver_query_info(struct pipe_screen *pscreen, unsigned index, struct pipe_driver_query_info *info) { struct pipe_driver_query_info list[] = { - {"draw-calls", FD_QUERY_DRAW_CALLS, 0}, - {"batches", FD_QUERY_BATCH_TOTAL, 0}, - {"batches-sysmem", FD_QUERY_BATCH_SYSMEM, 0}, - {"batches-gmem", FD_QUERY_BATCH_GMEM, 0}, - {"restores", FD_QUERY_BATCH_RESTORE, 0}, - {"prims-emitted", PIPE_QUERY_PRIMITIVES_EMITTED, 0}, + {"draw-calls", FD_QUERY_DRAW_CALLS, {0}}, + {"batches", FD_QUERY_BATCH_TOTAL, {0}}, + {"batches-sysmem", FD_QUERY_BATCH_SYSMEM, {0}}, + {"batches-gmem", FD_QUERY_BATCH_GMEM, {0}}, + {"restores", FD_QUERY_BATCH_RESTORE, {0}}, + {"prims-emitted", PIPE_QUERY_PRIMITIVES_EMITTED, {0}}, }; if (!info) |