diff options
author | Marek Olšák <[email protected]> | 2017-01-29 22:45:36 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-21 21:27:23 +0100 |
commit | fd3e73f54e323d5de182bf6cdb6094c2fd7362b3 (patch) | |
tree | 1dd7f363ca9902fa441ba4ac87ca7e495f9cedbd /src/gallium/drivers | |
parent | 84e72f2962eab5eeb8b331e7a5d6eccaa7b8f5be (diff) |
gallivm: add no-signed-zeros-fp-math option to lp_create_builder (v2)
v2: define lp_float_mode
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c index 6618009610a..69eaf0c6364 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -1267,8 +1267,12 @@ void si_llvm_context_init(struct si_shader_context *ctx, #endif bool unsafe_fpmath = (sscreen->b.debug_flags & DBG_UNSAFE_MATH) != 0; + enum lp_float_mode float_mode = + unsafe_fpmath ? LP_FLOAT_MODE_UNSAFE_FP_MATH : + LP_FLOAT_MODE_DEFAULT; + ctx->gallivm.builder = lp_create_builder(ctx->gallivm.context, - unsafe_fpmath); + float_mode); ac_llvm_context_init(&ctx->ac, ctx->gallivm.context); ctx->ac.module = ctx->gallivm.module; |