projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d173da
)
gallivm: fix wrong return value in bitwise functions
author
Brian Paul
<brianp@vmware.com>
Thu, 16 Sep 2010 15:16:58 +0000
(09:16 -0600)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 16 Sep 2010 19:20:49 +0000
(20:20 +0100)
src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
b/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
index 55513c4904a6beaafe7f4342f9b9ba865999d7f1..706479b4d5616c5b9ca1d27628f3c6b755c039b1 100644
(file)
--- 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
;
}