diff options
author | Nicolai Hähnle <[email protected]> | 2017-08-04 15:42:15 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-22 09:50:57 +0200 |
commit | ad33f2ddd841c9390317d3bd209076b50fb1dd1f (patch) | |
tree | c44cd55621ede9e468bcb80bfdc25874c4fe45da /src/gallium/drivers/radeonsi/si_debug.c | |
parent | 40697e8678f5cc1a64ff2fbc7456e81e5147b7a2 (diff) |
radeonsi: re-order debug state dumping
Keep together the parts that won't use the deferred logging mechanism.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_debug.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_debug.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index 5a6d39102eb..3cc34b64bb8 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -815,9 +815,16 @@ static void si_dump_debug_state(struct pipe_context *ctx, FILE *f, { struct si_context *sctx = (struct si_context*)ctx; - if (flags & PIPE_DUMP_DEVICE_STATUS_REGISTERS) + if (flags & PIPE_DUMP_DEVICE_STATUS_REGISTERS) { si_dump_debug_registers(sctx, f); + if (flags & PIPE_DUMP_CURRENT_SHADERS) { + si_dump_annotated_shaders(sctx, f); + si_dump_command("Active waves (raw data)", "umr -wa | column -t", f); + si_dump_command("Wave information", "umr -O bits -wa", f); + } + } + if (flags & PIPE_DUMP_CURRENT_STATES) si_dump_framebuffer(sctx, f); @@ -829,12 +836,6 @@ static void si_dump_debug_state(struct pipe_context *ctx, FILE *f, si_dump_gfx_shader(sctx->screen, &sctx->ps_shader, f); si_dump_compute_shader(sctx->screen, &sctx->cs_shader_state, f); - if (flags & PIPE_DUMP_DEVICE_STATUS_REGISTERS) { - si_dump_annotated_shaders(sctx, f); - si_dump_command("Active waves (raw data)", "umr -wa | column -t", f); - si_dump_command("Wave information", "umr -O bits -wa", f); - } - si_dump_descriptor_list(&sctx->descriptors[SI_DESCS_RW_BUFFERS], "", "RW buffers", 4, SI_NUM_RW_BUFFERS, si_identity, f); |