diff options
author | Rob Clark <[email protected]> | 2017-11-21 13:20:53 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-17 12:41:32 -0500 |
commit | 2697480c923e4c811d9b9f11169de6be55ae38da (patch) | |
tree | e64b47ebe6aeaae2e1cd70889b6cf6aa2ac15933 /src/gallium/drivers/freedreno/freedreno_resource.c | |
parent | d848bee50faa98af493975c28377712c04d72277 (diff) |
freedreno: track staging and shadow perf ctrs for the HUD
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index e1375d24837..a04c49b7094 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -500,6 +500,7 @@ fd_resource_transfer_map(struct pipe_context *pctx, if (needs_flush && fd_try_shadow_resource(ctx, rsc, level, box)) { needs_flush = busy = false; rebind_resource(ctx, prsc); + ctx->stats.shadow_uploads++; } else { struct fd_resource *staging_rsc; @@ -531,6 +532,8 @@ fd_resource_transfer_map(struct pipe_context *pctx, fd_batch_reference(&write_batch, NULL); + ctx->stats.staging_uploads++; + return buf; } } |