mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
ac/llvm: implement msad_4x8
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26907>
This commit is contained in:
parent
1410735a62
commit
a339699b5c
1 changed files with 5 additions and 0 deletions
|
|
@ -1258,6 +1258,11 @@ static bool visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
|||
(LLVMValueRef[]){src[0], src[1], src[2]}, 3, 0);
|
||||
break;
|
||||
|
||||
case nir_op_msad_4x8:
|
||||
result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.msad.u8", ctx->ac.i32,
|
||||
(LLVMValueRef[]){src[1], src[0], src[2]}, 3, 0);
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Unknown NIR alu instr: ");
|
||||
nir_print_instr(&instr->instr, stderr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue