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:
parent
45a56ce399
commit
145138fb3c
|
@ -1846,6 +1846,8 @@ struct gl_transform_feedback_state
|
|||
*/
|
||||
struct gl_perf_monitor_object
|
||||
{
|
||||
GLuint Name;
|
||||
|
||||
GLboolean Active;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue