nir: Properly preserve metadata in more cases
[mesa.git] / src / intel / perf / gen_perf.h
index 3c6b9010bd7d256fb9b7b8fa187fa80317494137..c9c8a3042a8fdc1ac56db6d066c487e61907e555 100644 (file)
@@ -25,6 +25,7 @@
 #define GEN_PERF_H
 
 #include <stdio.h>
+#include <stdbool.h>
 #include <stdint.h>
 #include <string.h>
 
@@ -267,6 +268,12 @@ struct gen_perf_config {
     */
    struct hash_table *oa_metrics_table;
 
+   /* Whether we have support for this platform. If true && n_queries == 0,
+    * this means we will not be able to use i915-perf because of it is in
+    * paranoid mode.
+    */
+   bool platform_supported;
+
    /* Location of the device's sysfs entry. */
    char sysfs_dev_dir[256];