st/mesa: eliminate unnecessary redirection
authorMark Janes <mark.a.janes@intel.com>
Wed, 1 May 2019 17:54:43 +0000 (10:54 -0700)
committerMark Janes <mark.a.janes@intel.com>
Thu, 8 Aug 2019 04:33:56 +0000 (21:33 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_cb_perfmon.c

index e1873d7c408641e430a640846679e3227f64e83a..914831f3d03a3671ebbc585330391b6d77911d2c 100644 (file)
@@ -344,7 +344,7 @@ static void
 st_InitPerfMonitorGroups(struct gl_context *ctx)
 {
    struct st_context *st = st_context(ctx);
-   struct gl_perf_monitor_state *perfmon = &st->ctx->PerfMonitor;
+   struct gl_perf_monitor_state *perfmon = &ctx->PerfMonitor;
    struct pipe_screen *screen = st->pipe->screen;
    struct gl_perf_monitor_group *groups = NULL;
    struct st_perf_monitor_group *stgroups = NULL;