mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
ac: add 16-bit support fo fsign
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
ff11c9dcc7
commit
0eb1478ac2
1 changed files with 5 additions and 1 deletions
|
|
@ -2472,7 +2472,11 @@ LLVMValueRef ac_build_fsign(struct ac_llvm_context *ctx, LLVMValueRef src0,
|
|||
LLVMValueRef cmp, val, zero, one;
|
||||
LLVMTypeRef type;
|
||||
|
||||
if (bitsize == 32) {
|
||||
if (bitsize == 16) {
|
||||
type = ctx->f16;
|
||||
zero = ctx->f16_0;
|
||||
one = ctx->f16_1;
|
||||
} else if (bitsize == 32) {
|
||||
type = ctx->f32;
|
||||
zero = ctx->f32_0;
|
||||
one = ctx->f32_1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue