diff options
author | Rob Clark <[email protected]> | 2015-04-30 10:10:14 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-06-21 07:52:58 -0400 |
commit | 67d994c6761e09205dbc9a0515c510fc9dde02c7 (patch) | |
tree | 72046247513b7af7010eb034999277ab7fc49f63 /src/gallium/drivers/freedreno/ir3/ir3_compiler.c | |
parent | 5c8c2e2f97394436effbdd3e0f61eec4590accb2 (diff) |
freedreno/ir3: drop dot graph dumping
At least for now.. right now the instruction and instruction list
printing should suffice, and the re-working of ir3_block would require
a lot of changes in that code.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_compiler.c')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_compiler.c | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c index cc049d3fdfd..25af9f91d3f 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c @@ -3515,22 +3515,6 @@ compile_instructions(struct ir3_compile_context *ctx) } } -static void -compile_dump(struct ir3_compile_context *ctx) -{ - const char *name = (ctx->so->type == SHADER_VERTEX) ? "vert" : "frag"; - static unsigned n = 0; - char fname[16]; - FILE *f; - snprintf(fname, sizeof(fname), "%s-%04u.dot", name, n++); - f = fopen(fname, "w"); - if (!f) - return; - ir3_block_depth(ctx->block); - ir3_dump(ctx->ir, name, ctx->block, f); - fclose(f); -} - int ir3_compile_shader(struct ir3_shader_variant *so, const struct tgsi_token *tokens, struct ir3_shader_key key, @@ -3613,20 +3597,15 @@ ir3_compile_shader(struct ir3_shader_variant *so, block->outputs[block->noutputs++] = ctx.kill[i]; } - if (fd_mesa_debug & FD_DBG_OPTDUMP) - compile_dump(&ctx); - ret = ir3_block_flatten(block); if (ret < 0) { DBG("FLATTEN failed!"); goto out; } - if ((ret > 0) && (fd_mesa_debug & FD_DBG_OPTDUMP)) - compile_dump(&ctx); if (fd_mesa_debug & FD_DBG_OPTMSGS) { printf("BEFORE CP:\n"); - ir3_dump_instr_list(block->head); + ir3_print(so->ir); } ir3_block_depth(block); @@ -3641,7 +3620,7 @@ ir3_compile_shader(struct ir3_shader_variant *so, if (fd_mesa_debug & FD_DBG_OPTMSGS) { printf("BEFORE GROUPING:\n"); - ir3_dump_instr_list(block->head); + ir3_print(so->ir); } /* Group left/right neighbors, inserting mov's where needed to @@ -3649,14 +3628,11 @@ ir3_compile_shader(struct ir3_shader_variant *so, */ ir3_block_group(block); - if (fd_mesa_debug & FD_DBG_OPTDUMP) - compile_dump(&ctx); - ir3_block_depth(block); if (fd_mesa_debug & FD_DBG_OPTMSGS) { printf("AFTER DEPTH:\n"); - ir3_dump_instr_list(block->head); + ir3_print(so->ir); } ret = ir3_block_sched(block); @@ -3667,7 +3643,7 @@ ir3_compile_shader(struct ir3_shader_variant *so, if (fd_mesa_debug & FD_DBG_OPTMSGS) { printf("AFTER SCHED:\n"); - ir3_dump_instr_list(block->head); + ir3_print(so->ir); } ret = ir3_block_ra(block, so->type, so->frag_coord, so->frag_face); @@ -3678,7 +3654,7 @@ ir3_compile_shader(struct ir3_shader_variant *so, if (fd_mesa_debug & FD_DBG_OPTMSGS) { printf("AFTER RA:\n"); - ir3_dump_instr_list(block->head); + ir3_print(so->ir); } ir3_block_legalize(block, &so->has_samp, &max_bary); |