[Mesa-dev] [PATCH 9/9] gallivm: only use the mul/rcp for floats.
Dave Airlie
airlied at gmail.com
Wed Feb 8 04:17:57 PST 2012
From: Dave Airlie <airlied at redhat.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/auxiliary/gallivm/lp_bld_arit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index a15dcb0..f3e8ae4 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@ -612,7 +612,7 @@ lp_build_div(struct lp_build_context *bld,
return LLVMConstUDiv(a, b);
}
- if(util_cpu_caps.has_sse && type.width == 32 && type.length == 4)
+ if(util_cpu_caps.has_sse && type.width == 32 && type.length == 4 && type.floating)
return lp_build_mul(bld, a, lp_build_rcp(bld, b));
if (type.floating)
--
1.7.7.6
More information about the mesa-dev
mailing list