Module: Mesa Branch: master Commit: 1691e29e62a6a0b5fa7a5f53b308b2a327a11eab URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1691e29e62a6a0b5fa7a5f53b308b2a327a11eab
Author: Brian Paul <[email protected]> Date: Fri Oct 28 13:04:32 2016 -0700 svga: collect stats for time spent in svga_context_finish() This should have appeared with commit "svga: add guest statistic gathering interface" from August 4, but was somehow lost. --- src/gallium/drivers/svga/svga_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index 21ce508..436961b 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -386,9 +386,13 @@ svga_context_finish(struct svga_context *svga) struct pipe_screen *screen = svga->pipe.screen; struct pipe_fence_handle *fence = NULL; + SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_CONTEXTFINISH); + svga_context_flush(svga, &fence); screen->fence_finish(screen, NULL, fence, PIPE_TIMEOUT_INFINITE); screen->fence_reference(screen, &fence, NULL); + + SVGA_STATS_TIME_POP(svga_sws(svga)); } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
