summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-06-25 08:47:55 -0400
committerRob Clark <[email protected]>2018-07-18 10:10:44 -0400
commit97a9283f5dbbc78d48d6b0a21fdcab991328bc0f (patch)
tree51c5720c03e4887ac49e2c3743b38afd0fd618f6 /src/gallium/drivers/freedreno/freedreno_context.h
parent8dfc9e22c12ff840510d876b09d7f7163256bb17 (diff)
freedreno: register usage queries
Avg number of (half) regs per draw, so we can corrolate fps dips to shader register usage. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h
index b81cbd052f5..bc7ff6193fa 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.h
+++ b/src/gallium/drivers/freedreno/freedreno_context.h
@@ -219,6 +219,7 @@ struct fd_context {
uint64_t draw_calls;
uint64_t batch_total, batch_sysmem, batch_gmem, batch_nondraw, batch_restore;
uint64_t staging_uploads, shadow_uploads;
+ uint64_t vs_regs, fs_regs;
} stats;
/* Current batch.. the rule here is that you can deref ctx->batch