mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 01:58:16 +02:00
llvmpipe: port over to ffma_weak
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
2a6633a8ba
commit
eb4c6ad4db
2 changed files with 4 additions and 0 deletions
|
|
@ -3337,6 +3337,7 @@ do_alu_action(struct lp_build_nir_soa_context *bld,
|
|||
case nir_op_ffloor:
|
||||
result = lp_build_floor(float_bld, src[0]);
|
||||
break;
|
||||
case nir_op_ffma_weak:
|
||||
case nir_op_ffma_old:
|
||||
result = lp_build_fmuladd(builder, src[0], src[1], src[2]);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -491,6 +491,9 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
|
|||
.lower_ffma16 = true,
|
||||
.lower_ffma32 = true,
|
||||
.lower_ffma64 = true,
|
||||
.float_mul_add16 = nir_float_muladd_support_keep_weak_ffma,
|
||||
.float_mul_add32 = nir_float_muladd_support_keep_weak_ffma,
|
||||
.float_mul_add64 = nir_float_muladd_support_keep_weak_ffma,
|
||||
.lower_flrp16 = true,
|
||||
.lower_fmod = true,
|
||||
.lower_hadd = true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue