projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d6d514
)
gallivm: fix typo/bug in lp_build_sgn()
author
Brian Paul
<brianp@vmware.com>
Mon, 15 Mar 2010 17:27:24 +0000
(11:27 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 15 Mar 2010 17:30:05 +0000
(11:30 -0600)
We were never returning -1 as a result. This fixes some inverted/flipped
faces with cube mapping.
src/gallium/auxiliary/gallivm/lp_bld_arit.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index c39b062d10ea0898363f2b7a1a7bf317ed02c96e..233a36669d4f13fc1484a7e308fcc7c80548854f 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@
-770,7
+770,7
@@
lp_build_sgn(struct lp_build_context *bld,
/* Handle zero */
cond = lp_build_cmp(bld, PIPE_FUNC_EQUAL, a, bld->zero);
- res = lp_build_select(bld, cond, bld->zero,
bld->one
);
+ res = lp_build_select(bld, cond, bld->zero,
res
);
return res;
}