[Mesa-dev] [PATCH 07/27] mesa: Also initialize gl_performance_monitor::Active.

Kenneth Graunke kenneth at whitecape.org
Wed Nov 13 17:52:12 PST 2013


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 <kenneth at whitecape.org>
Cc: Eric Anholt <eric at anholt.net>
Cc: Carl Worth <cworth at cworth.org>
Cc: Juha-Pekka Heikkilä <juha-pekka.heikkila at intel.com>
---
 src/mesa/main/performance_monitor.c | 2 ++
 1 file changed, 2 insertions(+)

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);
 
-- 
1.8.3.2



More information about the mesa-dev mailing list