summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2019-08-02 18:19:01 -0700
committerMark Janes <[email protected]>2019-08-07 17:20:04 -0700
commita29bc3a3adf0626fabb083a572a0d1fee5f2a1ee (patch)
tree257c073b7ce86fce34aca3386d46155a285bf87c /src/mesa/drivers
parentc0376a123418df0050dc45d3e1e84f6b29a6a1f3 (diff)
i965/perf: restore mdapi statistics query metrics
Registration of mdapi metrics based on statistics query registers was inadvertently removed in the commit that checks for OA kernel support. The statistics queries are not dependent on OA. Fixes: 96e1c945f2b ("i965: Move device info initialization to common code") Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_performance_query.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c
index bb8c2bf0fea..ea84d4ab327 100644
--- a/src/mesa/drivers/dri/i965/brw_performance_query.c
+++ b/src/mesa/drivers/dri/i965/brw_performance_query.c
@@ -1736,6 +1736,7 @@ brw_init_perf_query_info(struct gl_context *ctx)
brw->perfquery.perf = gen_perf_new(brw, drmIoctl);
init_pipeline_statistic_query_registers(brw);
+ brw_perf_query_register_mdapi_statistic_query(brw);
if ((oa_metrics_kernel_support(screen->fd, devinfo)) &&
(gen_perf_load_oa_metrics(brw->perfquery.perf, screen->fd, devinfo)))