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/vulkan | |
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/vulkan')
0 files changed, 0 insertions, 0 deletions