Mesa (master): tgsi: Note that LOG and EXP are approximations.
MichaŠKról
michal at kemper.freedesktop.org
Tue Mar 10 09:29:12 UTC 2009
Module: Mesa
Branch: master
Commit: bbf84cca572584f05927efca89ea29fa13abccb8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bbf84cca572584f05927efca89ea29fa13abccb8
Author: Michal Krol <michal at vmware.com>
Date: Tue Mar 10 10:06:19 2009 +0100
tgsi: Note that LOG and EXP are approximations.
---
.../auxiliary/tgsi/tgsi-instruction-set.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt b/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
index b36091f..f0e6aee 100644
--- a/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
+++ b/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
@@ -48,7 +48,7 @@ TGSI Instruction Specification
dst.w = 1.0 / sqrt(abs(src.x))
-1.1.6 EXP - Exponential Base 2
+1.1.6 EXP - Approximate Exponential Base 2
dst.x = pow(2.0, floor(src.x))
dst.y = src.x - floor(src.x)
@@ -56,7 +56,7 @@ TGSI Instruction Specification
dst.w = 1.0
-1.1.7 LOG - Logarithm Base 2
+1.1.7 LOG - Approximate Logarithm Base 2
dst.x = floor(lg2(abs(src.x)))
dst.y = abs(src.x) / pow(2.0, floor(lg2(abs(src.x))))
More information about the mesa-commit
mailing list