[Mesa-dev] [PATCH] ac/nir: remove emission of nir_op_fdiv

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Mon Feb 5 22:04:23 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Mon, Feb 5, 2018 at 9:37 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> RadeonSI and RADV lower fdiv.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/common/ac_nir_to_llvm.c | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
> index b211832b47..e25bae600f 100644
> --- a/src/amd/common/ac_nir_to_llvm.c
> +++ b/src/amd/common/ac_nir_to_llvm.c
> @@ -1760,11 +1760,6 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
>                 src[1] = ac_to_float(&ctx->ac, src[1]);
>                 result = LLVMBuildFMul(ctx->ac.builder, src[0], src[1], "");
>                 break;
> -       case nir_op_fdiv:
> -               src[0] = ac_to_float(&ctx->ac, src[0]);
> -               src[1] = ac_to_float(&ctx->ac, src[1]);
> -               result = ac_build_fdiv(&ctx->ac, src[0], src[1]);
> -               break;
>         case nir_op_frcp:
>                 src[0] = ac_to_float(&ctx->ac, src[0]);
>                 result = ac_build_fdiv(&ctx->ac, instr->dest.dest.ssa.bit_size == 32 ? ctx->ac.f32_1 : ctx->ac.f64_1,
> --
> 2.16.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list