mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
ac/llvm: fix mul24 intrinsic overloading
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: e3edc6029b ("ac/llvm: use mul24 intrinsics")
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35489>
This commit is contained in:
parent
3c2b3fbd03
commit
8609008aeb
1 changed files with 2 additions and 2 deletions
|
|
@ -613,10 +613,10 @@ static bool visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
|||
result = LLVMBuildSub(ctx->ac.builder, src[0], src[1], "");
|
||||
break;
|
||||
case nir_op_imul24_relaxed:
|
||||
result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.i24", ctx->ac.i32, src, 2, 0);
|
||||
result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.i24.i32", ctx->ac.i32, src, 2, 0);
|
||||
break;
|
||||
case nir_op_umul24_relaxed:
|
||||
result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.u24", ctx->ac.i32, src, 2, 0);
|
||||
result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.u24.i32", ctx->ac.i32, src, 2, 0);
|
||||
break;
|
||||
case nir_op_imul:
|
||||
if (instr->no_unsigned_wrap)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue