Module: Mesa
Branch: master
Commit: 9b329f4c095a6b0aa5e55519c32fcf4c9d823e2b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b329f4c095a6b0aa5e55519c32fcf4c9d823e2b

Author: Roland Scheidegger <[email protected]>
Date:   Tue Apr  2 13:20:24 2013 +0200

gallivm: fix signed small float to float conversion

Introduced by 5f41e08cf39d585d600aa506cdcd2f5380c60ddd,
just a silly typo.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=62921.

---

 .../auxiliary/gallivm/lp_bld_format_float.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_float.c 
b/src/gallium/auxiliary/gallivm/lp_bld_format_float.c
index 352068a..f899d6d 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_float.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_float.c
@@ -266,7 +266,7 @@ lp_build_smallfloat_to_float(struct gallivm_state *gallivm,
       LLVMValueRef signmask = lp_build_const_int_vec(gallivm, i32_type, 
0x80000000);
       shift = lp_build_const_int_vec(gallivm, i32_type, 8 - exponent_bits);
       sign = lp_build_shl(&i32_bld, src, shift);
-      sign = lp_build_and(&i32_bld, signmask, src);
+      sign = lp_build_and(&i32_bld, signmask, sign);
       res = lp_build_or(&i32_bld, res, sign);
    }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to