summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/hud/hud_private.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-01-15 22:28:15 +0100
committerMarek Olšák <[email protected]>2017-01-16 15:35:30 +0100
commit1fe7c8d3c9f7ace602627d9574117d5b447accd3 (patch)
treecba63d5d1b510214d4bc7b749c843e67d9019b4b /src/gallium/auxiliary/hud/hud_private.h
parent5b2eddc40f141f40b9c152f6e45180932288b38e (diff)
gallium/hud: disable queries during HUD draw calls
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_private.h')
-rw-r--r--src/gallium/auxiliary/hud/hud_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h
index d719e5f5ebb..b23439e5c66 100644
--- a/src/gallium/auxiliary/hud/hud_private.h
+++ b/src/gallium/auxiliary/hud/hud_private.h
@@ -41,6 +41,7 @@ struct hud_graph {
/* name and query */
char name[128];
void *query_data;
+ void (*begin_query)(struct hud_graph *gr);
void (*query_new_value)(struct hud_graph *gr);
void (*free_query_data)(void *ptr); /**< do not use ordinary free() */
@@ -103,6 +104,7 @@ void hud_pipe_query_install(struct hud_batch_query_context **pbq,
boolean hud_driver_query_install(struct hud_batch_query_context **pbq,
struct hud_pane *pane,
struct pipe_context *pipe, const char *name);
+void hud_batch_query_begin(struct hud_batch_query_context *bq);
void hud_batch_query_update(struct hud_batch_query_context *bq);
void hud_batch_query_cleanup(struct hud_batch_query_context **pbq);