From: Kenneth Graunke Date: Thu, 14 Nov 2013 01:08:32 +0000 (-0800) Subject: mesa: Also initialize gl_performance_monitor::Active. X-Git-Tag: upstream/10.1.2~1462 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6712f51093f24be08afe14f67e78518b3754266;p=platform%2Fupstream%2Fmesa.git mesa: Also initialize gl_performance_monitor::Active. The i965 implementation uses calloc, so I missed this. It's best to simply initialize it to avoid requiring a zeroing allocator, though. Signed-off-by: Kenneth Graunke Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c index 06c5c2f..5a295b1 100644 --- a/src/mesa/main/performance_monitor.c +++ b/src/mesa/main/performance_monitor.c @@ -64,6 +64,8 @@ new_performance_monitor(struct gl_context *ctx, GLuint index) m->Name = index; + m->Active = false; + m->ActiveGroups = rzalloc_array(NULL, unsigned, ctx->PerfMonitor.NumGroups);