intel/perf: make pipeline statistic query loading optional
On Vulkan most of those are already covered by standard queries so add the ability to skip them. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
This commit is contained in:
@@ -847,10 +847,13 @@ gen_perf_query_result_clear(struct gen_perf_query_result *result)
|
||||
void
|
||||
gen_perf_init_metrics(struct gen_perf_config *perf_cfg,
|
||||
const struct gen_device_info *devinfo,
|
||||
int drm_fd)
|
||||
int drm_fd,
|
||||
bool include_pipeline_statistics)
|
||||
{
|
||||
load_pipeline_statistic_metrics(perf_cfg, devinfo);
|
||||
gen_perf_register_mdapi_statistic_query(perf_cfg, devinfo);
|
||||
if (include_pipeline_statistics) {
|
||||
load_pipeline_statistic_metrics(perf_cfg, devinfo);
|
||||
gen_perf_register_mdapi_statistic_query(perf_cfg, devinfo);
|
||||
}
|
||||
if (load_oa_metrics(perf_cfg, drm_fd, devinfo))
|
||||
gen_perf_register_mdapi_oa_query(perf_cfg, devinfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user