X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=metrics-info.h;fp=metrics-info.h;h=f03352eb913ec5eaac4dfa8d4ddda0819dba3eb4;hb=824789d9fbe591782b55a8d347e588735bab0040;hp=1340c836ef764a36aebd4f63fa4adfab67e6c115;hpb=c27d7ce0b3ce5a2b9b753a654fdebcc1627aae52;p=fips diff --git a/metrics-info.h b/metrics-info.h index 1340c83..f03352e 100644 --- a/metrics-info.h +++ b/metrics-info.h @@ -54,6 +54,9 @@ typedef struct metrics_info { int initialized; + bool have_perfmon; + bool printed_missing_perfmon_warning; + unsigned num_groups; metrics_group_info_t *groups; @@ -67,9 +70,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. *