r600: don't dump shader info to files on debug

This was useful to bring up the NIR backend, but is not needed
anymore.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17678>
This commit is contained in:
Gert Wollny 2022-07-22 19:39:38 +02:00 committed by Marge Bot
parent dcfb047e11
commit 36c000484d

View file

@ -291,29 +291,10 @@ int r600_pipe_shader_create(struct pipe_context *ctx,
}
}
if (dump) {
FILE *f;
char fname[1024];
snprintf(fname, 1024, "shader_from_%s_%d.cpp",
(sel->ir_type == PIPE_SHADER_IR_TGSI ?
(rscreen->b.debug_flags & DBG_NIR_PREFERRED ? "tgsi-nir" : "tgsi")
: "nir"), nshader);
f = fopen(fname, "w");
print_shader_info(f, nshader++, &shader->shader);
print_shader_info(stderr, nshader++, &shader->shader);
print_pipe_info(stderr, &sel->info);
if (sel->ir_type == PIPE_SHADER_IR_TGSI) {
fprintf(f, "/****TGSI**********************************\n");
tgsi_dump_to_file(sel->tokens, 0, f);
}
if (rscreen->b.debug_flags & DBG_NIR_PREFERRED){
fprintf(f, "/****NIR **********************************\n");
nir_print_shader(sel->nir, f);
}
fprintf(f, "******************************************/\n");
fclose(f);
}
if (dump) {
print_shader_info(stderr, nshader++, &shader->shader);
print_pipe_info(stderr, &sel->info);
}
if (shader->gs_copy_shader) {
if (dump) {