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 <tomeu.vizoso@collabora.com>
This commit is contained in:
parent
5a7688fdec
commit
75b53a159d
|
@ -1367,8 +1367,8 @@ pandecode_uniform_buffers(mali_ptr pubufs, int ubufs_count, int job_no)
|
||||||
pandecode_log("};\n");
|
pandecode_log("};\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
pandecode_log("struct mali_uniform_buffer_meta uniform_buffers_%d[] = {\n",
|
pandecode_log("struct mali_uniform_buffer_meta uniform_buffers_%"PRIx64"_%d[] = {\n",
|
||||||
job_no);
|
pubufs, job_no);
|
||||||
pandecode_indent++;
|
pandecode_indent++;
|
||||||
|
|
||||||
for (int i = 0; i < ubufs_count; i++) {
|
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 pandecode_mapped_memory *fmem = pandecode_find_mapped_gpu_mem_containing(p->viewport);
|
||||||
struct mali_viewport *PANDECODE_PTR_VAR(f, fmem, 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_indent++;
|
||||||
|
|
||||||
pandecode_prop("clip_minx = %f", f->clip_minx);
|
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) {
|
if (mmem) {
|
||||||
mali_ptr *PANDECODE_PTR_VAR(u, mmem, p->texture_trampoline);
|
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++;
|
pandecode_indent++;
|
||||||
|
|
||||||
for (int tex = 0; tex < texture_count; ++tex) {
|
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) {
|
for (int i = 0; i < sampler_count; ++i) {
|
||||||
s = pandecode_fetch_gpu_mem(smem, d + sizeof(*s) * i, sizeof(*s));
|
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++;
|
pandecode_indent++;
|
||||||
|
|
||||||
/* Only the lower two bits are understood right now; the rest we display as hex */
|
/* Only the lower two bits are understood right now; the rest we display as hex */
|
||||||
|
|
Loading…
Reference in New Issue