diff --git a/docs/gallium/screen.rst b/docs/gallium/screen.rst index d8043b7eb21..087b29e9f44 100644 --- a/docs/gallium/screen.rst +++ b/docs/gallium/screen.rst @@ -153,6 +153,7 @@ The integer capabilities: the pipe_screen::get_timestamp hook are implemented. * ``PIPE_CAP_QUERY_TIMESTAMP_BITS``: How many bits the driver uses for the results of GL_TIMESTAMP queries. +* ``PIPE_CAP_TIMER_RESOLUTION``: The resolution of the timer in nanos. * ``PIPE_CAP_TEXTURE_MULTISAMPLE``: Whether all MSAA resources supported for rendering are also supported for texturing. * ``PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT``: The minimum alignment that should be diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 407ddd7b3c5..5e9c24ac3bd 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -153,6 +153,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_START_INSTANCE: case PIPE_CAP_QUERY_TIMESTAMP: + case PIPE_CAP_TIMER_RESOLUTION: case PIPE_CAP_TEXTURE_MULTISAMPLE: return 0; diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 153b4b92f69..c3222f986c5 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -778,6 +778,7 @@ enum pipe_cap PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT, PIPE_CAP_START_INSTANCE, PIPE_CAP_QUERY_TIMESTAMP, + PIPE_CAP_TIMER_RESOLUTION, PIPE_CAP_TEXTURE_MULTISAMPLE, PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT, PIPE_CAP_CUBE_MAP_ARRAY,