diff options
author | Tomeu Vizoso <[email protected]> | 2019-07-12 16:42:52 +0200 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-16 08:40:59 -0700 |
commit | 75b53a159d257aeade703d5a866c56c3f6f71846 (patch) | |
tree | 00ad5bd649799a4cac49320f97e7fc3b5201826e /src | |
parent | 5a7688fdecd76c7d9cd87f6f6c93eb32870a2146 (diff) |
pandecode: Add more addresses to trace
When debugging, we're given the fault_pointer unresolved, so it is
helpful to have more context in the decode.
Signed-off-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/pandecode/decode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 7e7fed81f99..4eaf09fd342 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -1367,8 +1367,8 @@ pandecode_uniform_buffers(mali_ptr pubufs, int ubufs_count, int job_no) pandecode_log("};\n"); } - pandecode_log("struct mali_uniform_buffer_meta uniform_buffers_%d[] = {\n", - job_no); + pandecode_log("struct mali_uniform_buffer_meta uniform_buffers_%"PRIx64"_%d[] = {\n", + pubufs, job_no); pandecode_indent++; for (int i = 0; i < ubufs_count; i++) { @@ -1616,7 +1616,7 @@ pandecode_vertex_tiler_postfix_pre(const struct mali_vertex_tiler_postfix *p, struct pandecode_mapped_memory *fmem = pandecode_find_mapped_gpu_mem_containing(p->viewport); struct mali_viewport *PANDECODE_PTR_VAR(f, fmem, p->viewport); - pandecode_log("struct mali_viewport viewport_%d%s = {\n", job_no, suffix); + pandecode_log("struct mali_viewport viewport_%"PRIx64"_%d%s = {\n", p->viewport, job_no, suffix); pandecode_indent++; pandecode_prop("clip_minx = %f", f->clip_minx); @@ -1724,7 +1724,7 @@ pandecode_vertex_tiler_postfix_pre(const struct mali_vertex_tiler_postfix *p, if (mmem) { mali_ptr *PANDECODE_PTR_VAR(u, mmem, p->texture_trampoline); - pandecode_log("uint64_t texture_trampoline_%d[] = {\n", job_no); + pandecode_log("uint64_t texture_trampoline_%"PRIx64"_%d[] = {\n", p->texture_trampoline, job_no); pandecode_indent++; for (int tex = 0; tex < texture_count; ++tex) { @@ -1855,7 +1855,7 @@ pandecode_vertex_tiler_postfix_pre(const struct mali_vertex_tiler_postfix *p, for (int i = 0; i < sampler_count; ++i) { s = pandecode_fetch_gpu_mem(smem, d + sizeof(*s) * i, sizeof(*s)); - pandecode_log("struct mali_sampler_descriptor sampler_descriptor_%d_%d = {\n", job_no, i); + pandecode_log("struct mali_sampler_descriptor sampler_descriptor_%"PRIx64"_%d_%d = {\n", d + sizeof(*s) * i, job_no, i); pandecode_indent++; /* Only the lower two bits are understood right now; the rest we display as hex */ |