i965/perf: restore mdapi statistics query metrics
authorMark Janes <mark.a.janes@intel.com>
Sat, 3 Aug 2019 01:19:01 +0000 (18:19 -0700)
committerMark Janes <mark.a.janes@intel.com>
Thu, 8 Aug 2019 00:20:04 +0000 (17:20 -0700)
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 <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/brw_performance_query.c

index bb8c2bf..ea84d4a 100644 (file)
@@ -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)))