Mesa (master): mesa: Also initialize gl_performance_monitor::Active.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Nov 18 02:53:34 UTC 2013
Module: Mesa
Branch: master
Commit: a6712f51093f24be08afe14f67e78518b3754266
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6712f51093f24be08afe14f67e78518b3754266
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Nov 13 17:08:32 2013 -0800
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 <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/main/performance_monitor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
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);
More information about the mesa-commit
mailing list