mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue