summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_emit.c
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2017-06-09 12:34:49 +0200
committerChristian Gmeiner <[email protected]>2017-06-16 15:28:12 +0200
commit82db591155ca2f79b522deaa5cd582fa0cf9461f (patch)
tree72994221550c45f84331f79f7f2b6560f1f48e2e /src/gallium/drivers/etnaviv/etnaviv_emit.c
parent5065549e2a75e2a56cd3bc8b0fbb6c9013e86cb4 (diff)
etnaviv: add rs-operations sw query
It could be useful to get the number of emited resolve operations when doing driver optimizations. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_emit.c')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_emit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_emit.c b/src/gallium/drivers/etnaviv/etnaviv_emit.c
index 81aaca96deb..bfff699ad88 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_emit.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_emit.c
@@ -171,6 +171,8 @@ etna_submit_rs_state(struct etna_context *ctx,
struct etna_cmd_stream *stream = ctx->stream;
struct etna_coalesce coalesce;
+ ctx->stats.rs_operations++;
+
if (screen->specs.pixel_pipes == 1) {
etna_cmd_stream_reserve(stream, 22);
etna_coalesce_start(stream, &coalesce);