diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2021-05-12 16:07:37 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2022-09-09 14:49:12 +0200 |
commit | 79b92af9da9c4de758e01d2aebdd758b5b4c07a2 (patch) | |
tree | 357133ba6a49cb053e7085f84b390d380332f486 /src/gallium/auxiliary/util/u_screen.c | |
parent | ca330f7f0464820a72d5a525a71276e9636dc611 (diff) |
gallium: Add PIPE_CAP_QUERY_TIMESTAMP_BITS
For those drivers that don't make full use of the 64 bits in
pipe_query_result.u64.
Applications will make use of it via GL_QUERY_COUNTER_BITS to handle
when the value rolls over.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10770>
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 914ffc45833..d880d2a66d9 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -515,6 +515,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, PIPE_SHADER_CAP_MAX_SHADER_BUFFERS); } + case PIPE_CAP_QUERY_TIMESTAMP_BITS: + return 64; + default: unreachable("bad PIPE_CAP_*"); } |