summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_helpers.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-22 23:44:46 +0200
committerMarek Olšák <[email protected]>2017-04-25 22:39:31 +0200
commit2c1ec23a0618b93cf0f5ae29aac27bb2c4a5e18c (patch)
treec8b8f97605b86f7217e64d5fc6762da70dfe16c4 /src/gallium/auxiliary/util/u_helpers.h
parent26a36c1af75f40cf225a47ee947ec6718d916a62 (diff)
gallium/util: add debugging helpers printing pipeline statistics
typically useful for hw bring-up Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_helpers.h')
-rw-r--r--src/gallium/auxiliary/util/u_helpers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_helpers.h b/src/gallium/auxiliary/util/u_helpers.h
index 7de960b907d..2b382a1a54e 100644
--- a/src/gallium/auxiliary/util/u_helpers.h
+++ b/src/gallium/auxiliary/util/u_helpers.h
@@ -29,6 +29,7 @@
#define U_HELPERS_H
#include "pipe/p_state.h"
+#include <stdio.h>
#ifdef __cplusplus
extern "C" {
@@ -52,6 +53,13 @@ bool util_save_and_upload_index_buffer(struct pipe_context *pipe,
const struct pipe_index_buffer *ib,
struct pipe_index_buffer *out_saved);
+struct pipe_query *
+util_begin_pipestat_query(struct pipe_context *ctx);
+
+void
+util_end_pipestat_query(struct pipe_context *ctx, struct pipe_query *q,
+ FILE *f);
+
#ifdef __cplusplus
}
#endif