projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec11e4
)
gallivm: add frem support to the lp_build_mod helper.
author
Dave Airlie
<airlied@redhat.com>
Tue, 28 Feb 2012 10:43:14 +0000
(10:43 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 28 Feb 2012 10:43:14 +0000
(10:43 +0000)
for completeness.
Signed-off-by: Dave Airlie <airlied@redhat.com>
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
65fc180
..
6001844
100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@
-2565,10
+2565,11
@@
lp_build_mod(struct lp_build_context *bld,
LLVMValueRef res;
const struct lp_type type = bld->type;
- assert(type.floating);
assert(lp_check_value(type, x));
assert(lp_check_value(type, y));
+ if (type.floating)
+ res = LLVMBuildFRem(builder, x, y, "");
if (type.sign)
res = LLVMBuildSRem(builder, x, y, "");
else