[Mesa-dev] [PATCH 06/18] gallium/radeon: don't use rsq_action
Dave Airlie
airlied at gmail.com
Tue Jul 28 17:43:36 PDT 2015
On 28 July 2015 at 20:05, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
Reviewed-by: Dave Airlie <airlied at redhat.com>
> ---
> src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
> index a7fa7cc..319380f 100644
> --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
> +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
> @@ -1498,6 +1498,9 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx)
> bld_base->op_actions[TGSI_OPCODE_POW].intr_name = "llvm.pow.f32";
> bld_base->op_actions[TGSI_OPCODE_ROUND].emit = build_tgsi_intrinsic_nomem;
> bld_base->op_actions[TGSI_OPCODE_ROUND].intr_name = "llvm.AMDIL.round.nearest.";
> + bld_base->op_actions[TGSI_OPCODE_RSQ].intr_name =
> + HAVE_LLVM >= 0x0305 ? "llvm.AMDGPU.rsq.clamped.f32" : "llvm.AMDGPU.rsq";
> + bld_base->op_actions[TGSI_OPCODE_RSQ].emit = build_tgsi_intrinsic_nomem;
> bld_base->op_actions[TGSI_OPCODE_SGE].emit = emit_cmp;
> bld_base->op_actions[TGSI_OPCODE_SEQ].emit = emit_cmp;
> bld_base->op_actions[TGSI_OPCODE_SHL].emit = emit_shl;
> @@ -1529,13 +1532,6 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx)
> bld_base->op_actions[TGSI_OPCODE_U2F].emit = emit_u2f;
> bld_base->op_actions[TGSI_OPCODE_XOR].emit = emit_xor;
> bld_base->op_actions[TGSI_OPCODE_UCMP].emit = emit_ucmp;
> -
> - bld_base->rsq_action.emit = build_tgsi_intrinsic_nomem;
> -#if HAVE_LLVM >= 0x0305
> - bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq.clamped.f32";
> -#else
> - bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq";
> -#endif
> }
>
> void radeon_llvm_create_func(struct radeon_llvm_context * ctx,
> --
> 2.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list