diff options
author | Marek Olšák <[email protected]> | 2019-07-12 17:35:39 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-19 20:16:19 -0400 |
commit | 81091a5183fb853d2de37ea82b51122601a36c93 (patch) | |
tree | d0ffefae20a7797aac908df5a999fa216aa426ef /src/gallium/drivers | |
parent | eb54b8c222e6ac7d81a3efde1dfed58b33c6a601 (diff) |
ac: create the LLVM builder in ac_llvm_context_init
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 7 |
1 files changed, 3 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 3de720c27b8..c534a445db4 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -962,14 +962,13 @@ void si_llvm_context_init(struct si_shader_context *ctx, ctx->screen = sscreen; ctx->compiler = compiler; - ac_llvm_context_init(&ctx->ac, compiler, sscreen->info.chip_class, - sscreen->info.family, 64); - enum ac_float_mode float_mode = sscreen->debug_flags & DBG(UNSAFE_MATH) ? AC_FLOAT_MODE_UNSAFE_FP_MATH : AC_FLOAT_MODE_NO_SIGNED_ZEROS_FP_MATH; - ctx->ac.builder = ac_create_builder(ctx->ac.context, float_mode); + + ac_llvm_context_init(&ctx->ac, compiler, sscreen->info.chip_class, + sscreen->info.family, float_mode, 64); ctx->gallivm.context = ctx->ac.context; ctx->gallivm.module = ctx->ac.module; |