From: Mark Janes Date: Sat, 3 Aug 2019 01:19:01 +0000 (-0700) Subject: i965/perf: restore mdapi statistics query metrics X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a29bc3a3adf0626fabb083a572a0d1fee5f2a1ee;p=mesa.git 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 --- 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)))