diff options
author | Robert Bragg <[email protected]> | 2015-06-04 13:55:37 +0100 |
---|---|---|
committer | Robert Bragg <[email protected]> | 2017-03-09 13:45:44 +0000 |
commit | e56550565e868e4b5de2112e4bc2fa8650a51309 (patch) | |
tree | 9fcab20cb61900c50a85d424ca0768b0bcadf86f /src/mesa/drivers/dri/i965/Makefile.sources | |
parent | f46e58e01805e92ddb6e7806a7ec39748bdbab9d (diff) |
i965: Add script to gen code for OA counter queries
Avoiding lots of error prone boilerplate and easing our ability to add +
maintain support for multiple OA performance counter queries for each
generation:
This adds a python script to generate code for building up
performance_queries from the metric sets and counters described in
brw_oa_hsw.xml as well as functions to normalize each counter based on
the RPN expressions given.
Although the XML file currently only includes a single metric set, the
code generated assumes there could be many sets.
The metrics as described in XML get translated into C structures
which are registered in a brw->perfquery.oa_metrics_table hash table
keyed by the GUID of the metric set in XML.
v2: numerous python style improvements (Dylan)
v3: Makefile.am fixups (Emil)
v4: Pattern rule for codegen + orthogonal .c and .h rules (Robert)
Signed-off-by: Robert Bragg <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/Makefile.sources')
-rw-r--r-- | src/mesa/drivers/dri/i965/Makefile.sources | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/Makefile.sources b/src/mesa/drivers/dri/i965/Makefile.sources index b1776a8513a..f9e5f6e594f 100644 --- a/src/mesa/drivers/dri/i965/Makefile.sources +++ b/src/mesa/drivers/dri/i965/Makefile.sources @@ -262,3 +262,7 @@ i965_gen8_FILES = \ i965_gen9_FILES = \ genX_blorp_exec.c + +i965_oa_GENERATED_FILES = \ + brw_oa_hsw.h \ + brw_oa_hsw.c |