[Mesa-dev] [PATCH 06/27] mesa: Store the performance monitor object's name.
Ian Romanick
idr at freedesktop.org
Thu Nov 14 14:58:48 PST 2013
Patches 6, 7, 8, and 9 are
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
On 11/13/2013 05:52 PM, Kenneth Graunke wrote:
> Being able to print monitor->Name is really useful for debugging.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> Cc: Eric Anholt <eric at anholt.net>
> Cc: Carl Worth <cworth at cworth.org>
> Cc: Juha-Pekka Heikkilä <juha-pekka.heikkila at intel.com>
> ---
> src/mesa/main/mtypes.h | 2 ++
> src/mesa/main/performance_monitor.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 41ffdb7..b9d319a 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-dev
mailing list