X-Git-Url: https://git.cworth.org/git?p=fips;a=blobdiff_plain;f=metrics-info.h;h=11043be3b6052f2de8ced21c7898fc63eaad2a0a;hp=1340c836ef764a36aebd4f63fa4adfab67e6c115;hb=ba91fa6199a75aea42e40221489d259f1f723e4e;hpb=c27d7ce0b3ce5a2b9b753a654fdebcc1627aae52 diff --git a/metrics-info.h b/metrics-info.h index 1340c83..11043be 100644 --- a/metrics-info.h +++ b/metrics-info.h @@ -54,6 +54,8 @@ typedef struct metrics_info { int initialized; + bool have_perfmon; + unsigned num_groups; metrics_group_info_t *groups; @@ -67,9 +69,13 @@ typedef struct metrics_info * This queries the names and ranges for all available performance counters. * * This should be called before any other metrics functions. + * + * The Boolean have_perfmon must be set to correctly indicate whether + * the current OpenGL context has the AMD_performance_monitor + * extension. */ void -metrics_info_init (metrics_info_t *info); +metrics_info_init (metrics_info_t *info, bool have_perfmon); /* Finalize metrics info state. *