From 6e1f873a0c019ee11dc6a1e489a615d270411e76 Mon Sep 17 00:00:00 2001 From: norablackcat Date: Sat, 17 Jun 2023 14:52:09 -0600 Subject: [PATCH] iris/screen: add PIPE_CAP_TIMER_RESOLUTION MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed by Marek Olšák Part-of: --- src/gallium/drivers/iris/iris_screen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index d761763..9b588c7 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -431,6 +431,9 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_QUERY_TIMESTAMP_BITS: return TIMESTAMP_BITS; + case PIPE_CAP_TIMER_RESOLUTION: + return DIV_ROUND_UP(1000000000ull, devinfo->timestamp_frequency); + case PIPE_CAP_DEVICE_PROTECTED_CONTEXT: return screen->kernel_features & KERNEL_HAS_PROTECTED_CONTEXT; -- 2.7.4