diff --git a/.pick_status.json b/.pick_status.json index b7976a7bb78..32aa971e72c 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -8257,7 +8257,7 @@ "description": "intel/perf: fix crash when no perf queries are supported", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "ec1fa1d51ff614c19d08c949482b40c060de48c9" }, diff --git a/src/intel/perf/gen_perf.c b/src/intel/perf/gen_perf.c index 77b7f4d8188..6e99042637e 100644 --- a/src/intel/perf/gen_perf.c +++ b/src/intel/perf/gen_perf.c @@ -631,7 +631,7 @@ load_oa_metrics(struct gen_perf_config *perf, int fd, break; } } - if (perf->fallback_raw_oa_metric == 0) + if (perf->fallback_raw_oa_metric == 0 && perf->n_queries > 0) perf->fallback_raw_oa_metric = perf->queries[perf->n_queries - 1].oa_metrics_set_id; return true;