diff options
author | Boris Brezillon <[email protected]> | 2019-06-19 16:05:01 +0200 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-21 13:01:12 -0700 |
commit | e8257f3de8e4887aec0f85e0ae375f544c6671d6 (patch) | |
tree | 2bdaae48b99a797b7401027ce1634435be0e57df /src/gallium/drivers/panfrost/pan_context.c | |
parent | 0bcbccf88712f455b61aaf39653582107c79e4a6 (diff) |
panfrost: Remove the perf counters interface
The DRM backend has a dummy implementation and the non-DRM backend is
gone, so let's remove this perf counter interface.
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index a803a8b68cb..24e180e31c9 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -47,9 +47,6 @@ #include "pan_util.h" #include "pan_tiler.h" -static int performance_counter_number = 0; -extern const char *pan_counters_base; - /* Do not actually send anything to the GPU; merely generate the cmdstream as fast as possible. Disables framebuffer writes */ //#define DRY_RUN @@ -1384,17 +1381,6 @@ panfrost_submit_frame(struct panfrost_context *ctx, bool flush_immediate, /* If readback, flush now (hurts the pipelined performance) */ if (flush_immediate) screen->driver->force_flush_fragment(ctx, fence); - - if (screen->driver->dump_counters && pan_counters_base) { - screen->driver->dump_counters(screen); - - char filename[128]; - snprintf(filename, sizeof(filename), "%s/frame%d.mdgprf", pan_counters_base, ++performance_counter_number); - FILE *fp = fopen(filename, "wb"); - fwrite(screen->perf_counters.cpu, 4096, sizeof(uint32_t), fp); - fclose(fp); - } - #endif } |