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:
José Fonseca 2012-05-15 22:36:09 +01:00
parent c95cea50a9
commit 9fb4eef6a1

View file

@ -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);
}