diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-02-18 07:46:03 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-02-18 08:45:09 -0500 |
commit | 59986461255474cfb11c18e7ea8a6303e2d25afb (patch) | |
tree | c2d4227380dc4222df8d8a01b01d227ca8c7ef70 /src/panfrost/pandecode | |
parent | 4122f747ac67eca4c27ffa8d7e91d7d0c3cb02a8 (diff) |
pan/decode: Cleanup pandecode_jc
Some of this code is, to put it mildly, impossibly ancient horsedropping
crazy cruft.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3836>
Diffstat (limited to 'src/panfrost/pandecode')
-rw-r--r-- | src/panfrost/pandecode/decode.c | 24 | ||||
-rw-r--r-- | src/panfrost/pandecode/public.h | 2 |
2 files changed, 3 insertions, 23 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 7e46014f3fa..97c2a255f31 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -2819,8 +2819,6 @@ pandecode_fragment_job(const struct pandecode_mapped_memory *mem, return sizeof(*s); } -static int job_descriptor_number = 0; - /* Entrypoint to start tracing. jc_gpu_va is the GPU address for the first job * in the chain; later jobs are found by walking the chain. Bifrost is, well, * if it's bifrost or not. GPU ID is the more finegrained ID (at some point, we @@ -2830,14 +2828,11 @@ static int job_descriptor_number = 0; * no faults, and only descends into the payload if there are faults. This is * useful for looking for faults without the overhead of invasive traces. */ -int +void pandecode_jc(mali_ptr jc_gpu_va, bool bifrost, unsigned gpu_id, bool minimal) { struct mali_job_descriptor_header *h; - - int start_number = 0; - - bool first = true; + unsigned job_descriptor_number = 0; do { struct pandecode_mapped_memory *mem = @@ -2859,9 +2854,6 @@ pandecode_jc(mali_ptr jc_gpu_va, bool bifrost, unsigned gpu_id, bool minimal) int job_no = job_descriptor_number++; - if (first) - start_number = job_no; - /* If the job is good to go, skip it in minimal mode */ if (minimal && (h->exception_status == 0x0 || h->exception_status == 0x1)) continue; @@ -2948,17 +2940,5 @@ pandecode_jc(mali_ptr jc_gpu_va, bool bifrost, unsigned gpu_id, bool minimal) default: break; } - - /* Handle linkage */ - - if (!first) { - pandecode_log("((struct mali_job_descriptor_header *) (uintptr_t) job_%d_p)->", job_no - 1); - pandecode_log_cont("next_job = job_%d_p;\n\n", job_no); - } - - first = false; - } while ((jc_gpu_va = h->next_job)); - - return start_number; } diff --git a/src/panfrost/pandecode/public.h b/src/panfrost/pandecode/public.h index 4e460d4f4f3..cc8a100a9aa 100644 --- a/src/panfrost/pandecode/public.h +++ b/src/panfrost/pandecode/public.h @@ -51,7 +51,7 @@ void pandecode_close(void); void pandecode_inject_mmap(uint64_t gpu_va, void *cpu, unsigned sz, const char *name); -int pandecode_jc(uint64_t jc_gpu_va, bool bifrost, unsigned gpu_id, bool minimal); +void pandecode_jc(uint64_t jc_gpu_va, bool bifrost, unsigned gpu_id, bool minimal); char * pandecode_exception_access(unsigned access); |