From a29bc3a3adf0626fabb083a572a0d1fee5f2a1ee Mon Sep 17 00:00:00 2001 From: Mark Janes Date: Fri, 2 Aug 2019 18:19:01 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_performance_query.c | 1 + 1 file changed, 1 insertion(+) 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))) -- 2.30.2