summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-10-16 01:42:57 +0100
committerJosé Fonseca <[email protected]>2011-10-16 14:18:41 +0100
commite9c1d87ce73eb3da829d5124cc5f4716d79e8973 (patch)
tree966eafd2779237cc281d23d3bd8307838fb0770d /src/gallium/drivers
parent1350882e4950bc957e60e68a685b8fea08693e13 (diff)
llvmpipe: Use lp_build_ifloor_fract for exp2 calculation.
Instead of separate ifloor / fract calls. No change for SSE4.1 code, but less FP<->SI conversions on non SSE4.1 systems.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_test_arit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_arit.c b/src/gallium/drivers/llvmpipe/lp_test_arit.c
index ea2a659142f..0b74dee176f 100644
--- a/src/gallium/drivers/llvmpipe/lp_test_arit.c
+++ b/src/gallium/drivers/llvmpipe/lp_test_arit.c
@@ -91,6 +91,10 @@ const float exp2_values[] = {
-1e-007,
0,
1e-007,
+ 0.01,
+ 0.1,
+ 0.9,
+ 0.99,
1,
2,
4,
@@ -107,8 +111,14 @@ const float log2_values[] = {
1.4012984643248171e-45,
#endif
1e-007,
+ 0.1,
0.5,
+ 0.99,
1,
+ 1.01,
+ 1.1,
+ 1.9,
+ 1.99,
2,
4,
100000,