intel/perf: allow metric sets to be loaded with on OA reports
A bunch of performance counters rely on register snapshots on top of the OA reports. Those are already conditional to the query mode in the equations : availability="true $QueryMode &&" This change allows to disable counters that are only available with additional register snapshots. This will be useful if you only want to OA reports to extract performance counter values. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Antonio Caggiano <antonio.caggiano@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10216>
This commit is contained in:

committed by
Marge Bot

parent
fba189a349
commit
5d95aa3964
@@ -48,7 +48,9 @@ anv_physical_device_init_perf(struct anv_physical_device *device, int fd)
|
||||
|
||||
struct intel_perf_config *perf = intel_perf_new(NULL);
|
||||
|
||||
intel_perf_init_metrics(perf, &device->info, fd, false /* pipeline statistics */);
|
||||
intel_perf_init_metrics(perf, &device->info, fd,
|
||||
false /* pipeline statistics */,
|
||||
true /* register snapshots */);
|
||||
|
||||
if (!perf->n_queries) {
|
||||
if (perf->platform_supported) {
|
||||
|
Reference in New Issue
Block a user