aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-03-21 19:44:18 +0100
committerMarek Olšák <[email protected]>2013-03-26 01:28:19 +0100
commit2504380aafe5ff745c87a2e715bc29a20597ebe4 (patch)
tree6939c81e3ae3a32545cf8c123c1cd7d9a0eb93cf /src/gallium/drivers/r600/r600_pipe.h
parente40c634bd210b53e8d8fb7e049f6efc7d0fe05cb (diff)
r600g: add a driver query returning the number of draw_vbo calls
between begin_query and end_query
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
index 285d45fd371..9c3a4c2b229 100644
--- a/src/gallium/drivers/r600/r600_pipe.h
+++ b/src/gallium/drivers/r600/r600_pipe.h
@@ -75,6 +75,8 @@
#define R600_CONTEXT_PS_PARTIAL_FLUSH (1 << 6)
#define R600_CONTEXT_FLUSH_AND_INV_DB_META (1 << 7)
+#define R600_QUERY_DRAW_CALLS (PIPE_QUERY_DRIVER_SPECIFIC + 0)
+
struct r600_context;
struct r600_bytecode;
struct r600_shader_key;
@@ -476,6 +478,9 @@ struct r600_query {
unsigned num_cs_dw;
/* linked list of queries */
struct list_head list;
+ /* for custom non-GPU queries */
+ uint64_t begin_result;
+ uint64_t end_result;
};
struct r600_so_target {
@@ -621,6 +626,7 @@ struct r600_context {
unsigned num_cs_dw_nontimer_queries_suspend;
/* If queries have been suspended. */
bool nontimer_queries_suspended;
+ unsigned num_draw_calls;
/* Render condition. */
struct pipe_query *current_render_cond;