diff options
author | Marek Olšák <[email protected]> | 2018-07-04 01:37:30 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-07-04 15:48:18 -0400 |
commit | 4695984dbcb6b0cd325dba91927959769c89373d (patch) | |
tree | 9df0e82a8cc27f64c3a48a84cd6a057771fe8501 /src/gallium/drivers | |
parent | f5cb4194c904ad510956d20fd8be90e0c56f47a4 (diff) |
ac: fold LLVMContext creation into ac_llvm_context_init
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c index b8cfd15a67f..b486be25749 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -956,10 +956,7 @@ void si_llvm_context_init(struct si_shader_context *ctx, ctx->screen = sscreen; ctx->compiler = compiler; - ctx->ac.context = LLVMContextCreate(); - ac_llvm_context_init(&ctx->ac, ctx->ac.context, - sscreen->info.chip_class, sscreen->info.family); - + ac_llvm_context_init(&ctx->ac, sscreen->info.chip_class, sscreen->info.family); ctx->ac.module = ac_create_module(compiler->tm, ctx->ac.context); enum ac_float_mode float_mode = |