Skip to content

intel/perf: fix raw query kernel metric selection

The raw query is meant to be used with MDAPI [1]. When using this metric without this library, we usually selected the TestOa metric to provide some default sensible values (instead of undefined). Historically this TestOa metric lived in the kernel at ID=1. We removed all metrics from the kernel in kernel commit 9aba9c188da136 ("drm/i915/perf: remove generated code").

This fixes the Mesa code to use a valid metric set ID (1 could work some of the time, but not guaranteed).

[1] : https://github.com/intel/metrics-discovery

Signed-off-by: Lionel Landwerlin lionel.g.landwerlin@intel.com CC: mesa-stable@lists.freedesktop.org

Merge request reports