intel/perf: Disable it for Xe KMD
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 10 Feb 2023 16:04:37 +0000 (08:04 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Mar 2023 19:41:14 +0000 (19:41 +0000)
Xe still don't have support for performance metrics.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21773>

src/intel/perf/intel_perf.c

index f857bb1..c0b24f4 100644 (file)
@@ -705,6 +705,10 @@ oa_metrics_available(struct intel_perf_config *perf, int fd,
    bool i915_perf_oa_available = false;
    struct stat sb;
 
+   /* TODO: Xe still don't have support for performance metrics */
+   if (devinfo->kmd_type != INTEL_KMD_TYPE_I915)
+      return false;
+
    perf->devinfo = *devinfo;
 
    /* Consider an invalid as supported. */