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@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Kenneth Graunke 2013-10-30 23:12:36 -07:00
parent 45a56ce399
commit 145138fb3c
2 changed files with 4 additions and 0 deletions

View File

@ -1846,6 +1846,8 @@ struct gl_transform_feedback_state
*/
struct gl_perf_monitor_object
{
GLuint Name;
GLboolean Active;
/**

View File

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