projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
145138f
)
mesa: Also initialize gl_performance_monitor::Active.
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 14 Nov 2013 01:08:32 +0000
(17:08 -0800)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 18 Nov 2013 02:51:06 +0000
(18:51 -0800)
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@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/performance_monitor.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/performance_monitor.c
b/src/mesa/main/performance_monitor.c
index
06c5c2f
..
5a295b1
100644
(file)
--- 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);