summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-07-14 13:32:20 +0200
committerNicolai Hähnle <[email protected]>2017-07-27 21:16:45 +0200
commit4738dd9546cc1018f17d89092b29b86364db4f39 (patch)
tree5adf9212041c52a6a9d6d79eb3e56c68bb4ce921 /src/gallium
parent760876a7b115ab98271bdc5989b78f89dc7599bd (diff)
radeonsi/gfx9: dump previous stage LLVM IR for merged shaders
Reviewed: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c7
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 cd0b4a2d82f..98f2be76ddd 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -5038,6 +5038,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);