gallivm: Fixed overflow in lp_build_clamped_float_to_unsigned_norm.
Tested with lp_test_conv and lp_test_format, reduced errors. Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
c286278481
commit
f89b1f4ba4
|
@ -190,7 +190,7 @@ lp_build_clamped_float_to_unsigned_norm(struct gallivm_state *gallivm,
|
|||
/*
|
||||
* Align the most significant bit to the right.
|
||||
*/
|
||||
rshifted = LLVMBuildAShr(builder, res,
|
||||
rshifted = LLVMBuildLShr(builder, res,
|
||||
lp_build_const_int_vec(gallivm, src_type, rshift),
|
||||
"");
|
||||
|
||||
|
|
Loading…
Reference in New Issue