]> git.cworth.org Git - fips/blobdiff - metrics-info.h
Fix fips to work even without the GL_AMD_performance_monitor extension.
[fips] / metrics-info.h
index 1340c836ef764a36aebd4f63fa4adfab67e6c115..f03352eb913ec5eaac4dfa8d4ddda0819dba3eb4 100644 (file)
@@ -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.
  *