aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-04-08 01:42:00 +0200
committerMarek Olšák <[email protected]>2016-04-12 14:29:46 +0200
commit26171bd67e47cf25857cbce767ad048c8d99d1b0 (patch)
treec3a40bac3c44c4b1c8d5ca93320e2d80917eb611 /src/gallium/include
parentfc67375379ec26eef63f8e530724cd53c97bc3d0 (diff)
gallium: add pipe_context::set_active_query_state for pausing queries
Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index 1c97e82ece5..82efaf5d8a9 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -173,6 +173,12 @@ struct pipe_context {
struct pipe_resource *resource,
unsigned offset);
+ /**
+ * Set whether all current non-driver queries except TIME_ELAPSED are
+ * active or paused.
+ */
+ void (*set_active_query_state)(struct pipe_context *pipe, boolean enable);
+
/*@}*/
/**