Mesa (master): gallivm: fix wrong return value in bitwise functions

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Sep 16 19:21:04 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Sep 16 09:16:58 2010 -0600

gallivm: fix wrong return value in bitwise functions

---

 src/gallium/auxiliary/gallivm/lp_bld_bitarit.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c b/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
index 55513c4..706479b 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
@@ -58,7 +58,7 @@ lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
       res = LLVMBuildBitCast(bld->builder, res, bld->vec_type, "");
    }
 
-   return b;
+   return res;
 }
 
 
@@ -86,7 +86,7 @@ lp_build_and(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
       res = LLVMBuildBitCast(bld->builder, res, bld->vec_type, "");
    }
 
-   return b;
+   return res;
 }
 
 
@@ -115,7 +115,7 @@ lp_build_andnot(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
       res = LLVMBuildBitCast(bld->builder, res, bld->vec_type, "");
    }
 
-   return b;
+   return res;
 }
 
 




More information about the mesa-commit mailing list