Mesa (master): gallivm: add frem support to the lp_build_mod helper.
Dave Airlie
airlied at kemper.freedesktop.org
Tue Feb 28 10:44:22 UTC 2012
Module: Mesa
Branch: master
Commit: a46548e0effa45d31b536c1af97b8dcacbe2db8e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a46548e0effa45d31b536c1af97b8dcacbe2db8e
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Feb 28 10:43:14 2012 +0000
gallivm: add frem support to the lp_build_mod helper.
for completeness.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/auxiliary/gallivm/lp_bld_arit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index 65fc180..6001844 100644
--- 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
More information about the mesa-commit
mailing list