aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-10-28 13:04:32 -0700
committerBrian Paul <[email protected]>2016-11-03 14:29:23 -0600
commit1691e29e62a6a0b5fa7a5f53b308b2a327a11eab (patch)
tree583ed45296e97980034112bdc0c2a040a133aa0a /src/gallium/drivers/svga/svga_context.c
parent8a195e2fd59886b4f47c7761bda96478bb0f8f95 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.c')
-rw-r--r--src/gallium/drivers/svga/svga_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index 21ce5089052..436961b1ecd 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));
}