summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-01-15 14:51:43 +0100
committerSamuel Pitoiset <[email protected]>2018-01-16 21:39:53 +0100
commit2091206ad3764c94317bd700cc551f9c31a2847d (patch)
treefa545fd9f22e95bc2ab5938a38d5713b30be44e9 /src/gallium/drivers
parentad2b3b2a9cefc28f8bd78a116ab549a08d35ec35 (diff)
ac: import lp_create_builder() from gallivm
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c8
1 files changed, 4 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 2ca036e67d3..fc141ca1e03 100644
--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
+++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
@@ -1160,11 +1160,11 @@ void si_llvm_context_init(struct si_shader_context *ctx,
LLVMDisposeMessage(data_layout_str);
bool unsafe_fpmath = (sscreen->debug_flags & DBG(UNSAFE_MATH)) != 0;
- enum lp_float_mode float_mode =
- unsafe_fpmath ? LP_FLOAT_MODE_UNSAFE_FP_MATH :
- LP_FLOAT_MODE_NO_SIGNED_ZEROS_FP_MATH;
+ enum ac_float_mode float_mode =
+ unsafe_fpmath ? AC_FLOAT_MODE_UNSAFE_FP_MATH :
+ AC_FLOAT_MODE_NO_SIGNED_ZEROS_FP_MATH;
- ctx->gallivm.builder = lp_create_builder(ctx->gallivm.context,
+ ctx->gallivm.builder = ac_create_builder(ctx->gallivm.context,
float_mode);
ac_llvm_context_init(&ctx->ac, ctx->gallivm.context,