summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJames Benton <jbenton@vmware.com>2012-05-18 16:01:25 +0100
committerJosé Fonseca <jfonseca@vmware.com>2012-05-21 20:24:44 +0100
commitf89b1f4ba4c7b13458532d916677aea3a66647dd (patch)
treebb7c6bbf0334f3b146dd5c8145e531358efbbc10 /src/gallium/auxiliary
parentc286278481b5d495223264332416d9e44eb625e7 (diff)
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>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_conv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_conv.c b/src/gallium/auxiliary/gallivm/lp_bld_conv.c
index 8a086631249..f0ef5167351 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_conv.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_conv.c
@@ -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),
"");