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/include/pipe/p_defines.h | |
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/include/pipe/p_defines.h')
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index b1df8366997..8a16fde22e7 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -775,11 +775,18 @@ enum pipe_driver_query_group_type PIPE_DRIVER_QUERY_GROUP_TYPE_GPU = 1, }; +union pipe_numeric_type_union +{ + uint64_t u64; + uint32_t u32; + float f; +}; + struct pipe_driver_query_info { const char *name; unsigned query_type; /* PIPE_QUERY_DRIVER_SPECIFIC + i */ - uint64_t max_value; /* max value that can be returned */ + union pipe_numeric_type_union max_value; /* max value that can be returned */ enum pipe_driver_query_type type; unsigned group_id; }; |