diff options
author | Rohan Garg <[email protected]> | 2019-06-05 17:23:54 +0200 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-18 09:52:20 -0700 |
commit | debb85d1ecccaad237261906186a2612f951a9b8 (patch) | |
tree | cd6be248922a8f20a3c2d0c8bfd1ca55cf57c3cc /src/gallium/drivers/panfrost/pan_job.c | |
parent | 0f43a2ae8afe217efaff9c0436388323a5f0d7b7 (diff) |
panfrost: Reset job counters once the job is submitted
Move the reset out of frame invalidation into job submission
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_job.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_job.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 1e09760871c..333c9f1f147 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -158,6 +158,10 @@ panfrost_job_submit(struct panfrost_context *ctx, struct panfrost_job *job) if (ret) fprintf(stderr, "panfrost_job_submit failed: %d\n", ret); + /* Reset job counters */ + ctx->draw_count = 0; + ctx->vertex_job_count = 0; + ctx->tiler_job_count = 0; } void |