diff options
author | Lionel Landwerlin <[email protected]> | 2018-08-12 19:17:27 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2018-12-28 16:48:43 +0000 |
commit | 6ba61ea391723a3d1d44df9a26abdeeb746be713 (patch) | |
tree | 83228af50cbe9b9ec5521a40bded3357da46cba2 /src/intel | |
parent | 7ab8c8062510ef1b3f01bef0e3b16c60ea311857 (diff) |
intel/aub_viewer: fold binding/sampler table items
Makes things easier to read rather than a long block of text.
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/tools/aubinator_viewer_decoder.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/intel/tools/aubinator_viewer_decoder.cpp b/src/intel/tools/aubinator_viewer_decoder.cpp index 105931560c6..7cc82e50a5d 100644 --- a/src/intel/tools/aubinator_viewer_decoder.cpp +++ b/src/intel/tools/aubinator_viewer_decoder.cpp @@ -233,8 +233,12 @@ dump_binding_table(struct aub_viewer_decode_ctx *ctx, uint32_t offset, int count continue; } - ImGui::Text("pointer %u: %08x", i, pointers[i]); - aub_viewer_print_group(ctx, strct, addr, (const uint8_t *) bo.map + (addr - bo.addr)); + const uint8_t *state = (const uint8_t *) bo.map + (addr - bo.addr); + if (ImGui::TreeNodeEx(&pointers[i], ImGuiTreeNodeFlags_Framed, + "pointer %u: %08x", i, pointers[i])) { + aub_viewer_print_group(ctx, strct, addr, state); + ImGui::TreePop(); + } } } @@ -262,8 +266,11 @@ dump_samplers(struct aub_viewer_decode_ctx *ctx, uint32_t offset, int count) } for (int i = 0; i < count; i++) { - ImGui::Text("sampler state %d", i); - aub_viewer_print_group(ctx, strct, state_addr, state_map); + if (ImGui::TreeNodeEx(state_map, ImGuiTreeNodeFlags_Framed, + "sampler state %d", i)) { + aub_viewer_print_group(ctx, strct, state_addr, state_map); + ImGui::TreePop(); + } state_addr += 16; state_map += 16; } |