mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
ac/nir: remove emission of nir_op_fpow
fpow is now lowered at NIR level. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
7aa008d1d7
commit
d6b7539206
1 changed files with 0 additions and 4 deletions
|
|
@ -1883,10 +1883,6 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
||||||
result = ac_build_fdiv(&ctx->ac, instr->dest.dest.ssa.bit_size == 32 ? ctx->ac.f32_1 : ctx->ac.f64_1,
|
result = ac_build_fdiv(&ctx->ac, instr->dest.dest.ssa.bit_size == 32 ? ctx->ac.f32_1 : ctx->ac.f64_1,
|
||||||
result);
|
result);
|
||||||
break;
|
break;
|
||||||
case nir_op_fpow:
|
|
||||||
result = emit_intrin_2f_param(&ctx->ac, "llvm.pow",
|
|
||||||
ac_to_float_type(&ctx->ac, def_type), src[0], src[1]);
|
|
||||||
break;
|
|
||||||
case nir_op_fmax:
|
case nir_op_fmax:
|
||||||
result = emit_intrin_2f_param(&ctx->ac, "llvm.maxnum",
|
result = emit_intrin_2f_param(&ctx->ac, "llvm.maxnum",
|
||||||
ac_to_float_type(&ctx->ac, def_type), src[0], src[1]);
|
ac_to_float_type(&ctx->ac, def_type), src[0], src[1]);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue