From: norablackcat Date: Sat, 17 Jun 2023 20:52:09 +0000 (-0600) Subject: iris/screen: add PIPE_CAP_TIMER_RESOLUTION X-Git-Tag: upstream/23.3.3~6649 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e1f873a0c019ee11dc6a1e489a615d270411e76;p=platform%2Fupstream%2Fmesa.git iris/screen: add PIPE_CAP_TIMER_RESOLUTION Reviewed by Marek Olšák Part-of: --- 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;