summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2015-11-12 11:53:22 +0100
committerNicolai Hähnle <[email protected]>2015-11-20 17:27:09 +0100
commit0aea83dc4ad8826648be7b400553083e0aeac004 (patch)
treeff09722e9e74a586d20a68d7287549a41e5017ac /src/mesa/state_tracker/st_context.h
parent4e1339691d3e04eb7e90d33ab5900ce1a40e628f (diff)
st/mesa: store mapping from perfmon counter to query type
Previously, when a performance monitor was initialized, an inner loop through all driver queries with string comparisons for each enabled performance monitor counter was used. This hurts when a driver exposes lots of queries. Reviewed-by: Samuel Pitoiset <[email protected]> Tested-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index c243f5cd966..60a9a4bb0d5 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -46,6 +46,7 @@ struct draw_stage;
struct gen_mipmap_state;
struct st_context;
struct st_fragment_program;
+struct st_perf_monitor_group;
struct u_upload_mgr;
@@ -217,6 +218,8 @@ struct st_context
int32_t read_stamp;
struct st_config_options options;
+
+ struct st_perf_monitor_group *perfmon;
};