Mesa (master): mesa: Store the performance monitor object's name.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Nov 18 02:53:34 UTC 2013


Module: Mesa
Branch: master
Commit: 145138fb3c7d84e23382631a4c0e6039b61154b6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=145138fb3c7d84e23382631a4c0e6039b61154b6

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Oct 30 23:12:36 2013 -0700

mesa: Store the performance monitor object's name.

Being able to print monitor->Name is really useful for debugging.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/mtypes.h              |    2 ++
 src/mesa/main/performance_monitor.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 67c4996..926d948 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1846,6 +1846,8 @@ struct gl_transform_feedback_state
  */
 struct gl_perf_monitor_object
 {
+   GLuint Name;
+
    GLboolean Active;
 
    /**
diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c
index 17cae51..06c5c2f 100644
--- a/src/mesa/main/performance_monitor.c
+++ b/src/mesa/main/performance_monitor.c
@@ -62,6 +62,8 @@ new_performance_monitor(struct gl_context *ctx, GLuint index)
    if (m == NULL)
       return NULL;
 
+   m->Name = index;
+
    m->ActiveGroups =
       rzalloc_array(NULL, unsigned, ctx->PerfMonitor.NumGroups);
 




More information about the mesa-commit mailing list