diff options
author | Marek Olšák <[email protected]> | 2017-03-15 20:50:35 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-17 01:22:11 +0200 |
commit | f05f0bb5cbc8b3b11342158b63e7e20f1f6f7c81 (patch) | |
tree | 0383c3f7e323c7d6ec3285279c98ef83a2451439 /src/gallium | |
parent | bd2cde0c259d925d9c3f3ae704cf0aac460863b9 (diff) |
radeonsi: remove local variable 'mod' from si_compile_tgsi_shader
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index b49e801101c..5d7175d674e 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -7508,7 +7508,6 @@ int si_compile_tgsi_shader(struct si_screen *sscreen, { struct si_shader_selector *sel = shader->selector; struct si_shader_context ctx; - LLVMModuleRef mod; int r = -1; /* Dump TGSI code before doing TGSI->LLVM conversion in case the @@ -7619,12 +7618,10 @@ int si_compile_tgsi_shader(struct si_screen *sscreen, si_build_wrapper_function(&ctx, parts, need_prolog ? 3 : 2, need_prolog ? 1 : 0); } - mod = ctx.gallivm.module; - /* Dump LLVM IR before any optimization passes */ if (sscreen->b.debug_flags & DBG_PREOPT_IR && r600_can_dump_shader(&sscreen->b, ctx.type)) - ac_dump_module(mod); + LLVMDumpModule(ctx.gallivm.module); si_llvm_finalize_module(&ctx, r600_extra_shader_checks(&sscreen->b, ctx.type)); @@ -7638,7 +7635,7 @@ int si_compile_tgsi_shader(struct si_screen *sscreen, /* Compile to bytecode. */ r = si_compile_llvm(sscreen, &shader->binary, &shader->config, tm, - mod, debug, ctx.type, "TGSI shader"); + ctx.gallivm.module, debug, ctx.type, "TGSI shader"); si_llvm_dispose(&ctx); if (r) { fprintf(stderr, "LLVM failed to compile shader\n"); |