summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-08-13 15:55:00 -0400
committerMarek Olšák <[email protected]>2018-08-21 20:50:37 -0400
commit6224144b6df17ba4cbd0a0e320b6d8059690c86b (patch)
treef69ea1060f2ea6717e61841a58c406db53d19121 /src/gallium
parent5d20b9be9066205f72f73bb5828a6a39c7dca37f (diff)
radeonsi: print the shader stage name when printing LLVM IR
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 354c05e3d9d..81c825db1e4 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -6994,7 +6994,8 @@ int si_compile_tgsi_shader(struct si_screen *sscreen,
/* Compile to bytecode. */
r = si_compile_llvm(sscreen, &shader->binary, &shader->config, compiler,
- ctx.ac.module, debug, ctx.type, "TGSI shader",
+ ctx.ac.module, debug, ctx.type,
+ si_get_shader_name(shader, ctx.type),
si_should_optimize_less(compiler, shader->selector));
si_llvm_dispose(&ctx);
if (r) {