mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
ac/llvm: fix amdgcn.rsq for v2f16
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6284>
This commit is contained in:
parent
dd8561fda9
commit
735c3901e1
1 changed files with 2 additions and 2 deletions
|
|
@ -884,8 +884,8 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
|||
ac_to_float_type(&ctx->ac, def_type), src[0]);
|
||||
break;
|
||||
case nir_op_frsq:
|
||||
result = emit_intrin_1f_param(&ctx->ac, "llvm.amdgcn.rsq",
|
||||
ac_to_float_type(&ctx->ac, def_type), src[0]);
|
||||
result = emit_intrin_1f_param_scalar(&ctx->ac, "llvm.amdgcn.rsq",
|
||||
ac_to_float_type(&ctx->ac, def_type), src[0]);
|
||||
if (ctx->abi->clamp_div_by_zero)
|
||||
result = ac_build_fmin(&ctx->ac, result,
|
||||
LLVMConstReal(ac_to_float_type(&ctx->ac, def_type), FLT_MAX));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue