diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-07-14 13:32:20 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-07-14 13:32:20 +0200 |
commit | c578649b1ee16c2a71ab7f2e810703f01f9a1b8d (patch) | |
tree | f685e8ee77a862cb94172d137e456bba62659548 | |
parent | fdd0b367f6d502b3e93ad88bf8be9230638aff9b (diff) |
radeonsi/gfx9: dump previous stage LLVM IR for merged shaders
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 116fcb00a8..90164ca1b6 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -5140,6 +5140,13 @@ void si_shader_dump(struct si_screen *sscreen, const struct si_shader *shader, si_dump_shader_key(processor, shader, file); if (!check_debug_option && shader->binary.llvm_ir_string) { + if (shader->previous_stage && + shader->previous_stage->binary.llvm_ir_string) { + fprintf(file, "\n%s - previous stage - LLVM IR:\n\n", + si_get_shader_name(shader, processor)); + fprintf(file, "%s\n", shader->previous_stage->binary.llvm_ir_string); + } + fprintf(file, "\n%s - main shader part - LLVM IR:\n\n", si_get_shader_name(shader, processor)); fprintf(file, "%s\n", shader->binary.llvm_ir_string); |