mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
iris: fully populate perf_config before using it to initialize perf_context
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9922>
This commit is contained in:
parent
0e32939654
commit
111d89eb7c
1 changed files with 2 additions and 2 deletions
|
|
@ -65,6 +65,8 @@ iris_init_perf_query_info(struct pipe_context *pipe)
|
|||
|
||||
iris_perf_init_vtbl(perf_cfg);
|
||||
|
||||
intel_perf_init_metrics(perf_cfg, &screen->devinfo, screen->fd, true /* pipeline_statistics */);
|
||||
|
||||
intel_perf_init_context(ice->perf_ctx,
|
||||
perf_cfg,
|
||||
ice,
|
||||
|
|
@ -74,8 +76,6 @@ iris_init_perf_query_info(struct pipe_context *pipe)
|
|||
ice->batches[IRIS_BATCH_RENDER].hw_ctx_id,
|
||||
screen->fd);
|
||||
|
||||
intel_perf_init_metrics(perf_cfg, &screen->devinfo, screen->fd, true /* pipeline_statistics */);
|
||||
|
||||
return perf_cfg->n_queries;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue