aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2015-11-25 12:19:03 +0100
committerNicolai Hähnle <[email protected]>2015-11-25 15:27:33 +0100
commitbabf655ab2b5ece764c7fda5fb7ee5be154f120c (patch)
treee93b28782c4c28279638b02009d88c9e159dcbe2 /src/mesa/state_tracker/st_context.c
parent27a06e0bbe805152ffc7abc716d954da35a97541 (diff)
st/mesa: delay initialization of performance counters
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 6e20fd1fda2..eea3de08d0f 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -255,7 +255,7 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe,
st_init_extensions(st->pipe->screen, &ctx->Const,
&ctx->Extensions, &st->options, ctx->Mesa_DXTn);
- if (st_init_perfmon(st)) {
+ if (st_have_perfmon(st)) {
/* GL_AMD_performance_monitor is only enabled when the underlying
* driver expose GPU hardware performance counters. */
ctx->Extensions.AMD_performance_monitor = GL_TRUE;