i965: perf: extract utility functions
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 6 Mar 2018 17:09:21 +0000 (17:09 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 23 Apr 2018 17:30:10 +0000 (18:30 +0100)
commitd71b442416be8ddbed93347d6a2f14a1294bec77
tree1614bc55d5141722fd878a5ef5dcd9f3d51c2632
parente37e6435895b27024e857f3b12269578613bd920
i965: perf: extract utility functions

We would like to reuse a number of the functions and structures in
another file in a future commit.

We also move the previous content of brw_performance_query.h into
brw_performance_query_metrics.h to be included by generated metrics
files.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_oa.py
src/mesa/drivers/dri/i965/brw_performance_query.c
src/mesa/drivers/dri/i965/brw_performance_query.h
src/mesa/drivers/dri/i965/brw_performance_query_metrics.h [new file with mode: 0644]
src/mesa/drivers/dri/i965/meson.build