mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
gallivm: Fix lp_build_sgn for normalized/fixed-point integers.
These types got broken with the recent commit that fixed lp_build_sgn for negative integers.
This commit is contained in:
parent
c95cea50a9
commit
9fb4eef6a1
1 changed files with 2 additions and 1 deletions
|
|
@ -926,7 +926,8 @@ lp_build_sgn(struct lp_build_context *bld,
|
|||
}
|
||||
else
|
||||
{
|
||||
LLVMValueRef minus_one = lp_build_const_int_vec(bld->gallivm, type, -1.0);
|
||||
/* signed int/norm/fixed point */
|
||||
LLVMValueRef minus_one = lp_build_const_vec(bld->gallivm, type, -1.0);
|
||||
cond = lp_build_cmp(bld, PIPE_FUNC_GREATER, a, bld->zero);
|
||||
res = lp_build_select(bld, cond, bld->one, minus_one);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue