mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
ac: add 16-bit support to ac_build_bit_count()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
94dd08eb7c
commit
fc398f4d67
1 changed files with 5 additions and 0 deletions
|
|
@ -2154,6 +2154,11 @@ LLVMValueRef ac_build_bit_count(struct ac_llvm_context *ctx, LLVMValueRef src0)
|
|||
(LLVMValueRef []) { src0 }, 1,
|
||||
AC_FUNC_ATTR_READNONE);
|
||||
break;
|
||||
case 16:
|
||||
result = ac_build_intrinsic(ctx, "llvm.ctpop.i16", ctx->i16,
|
||||
(LLVMValueRef []) { src0 }, 1,
|
||||
AC_FUNC_ATTR_READNONE);
|
||||
break;
|
||||
default:
|
||||
unreachable(!"invalid bitsize");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue