projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0f69e
)
tgsi: Note that LOG and EXP are approximations.
author
Michal Krol
<michal@vmware.com>
Tue, 10 Mar 2009 09:06:19 +0000
(10:06 +0100)
committer
Michal Krol
<michal@vmware.com>
Tue, 10 Mar 2009 09:27:15 +0000
(10:27 +0100)
src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
b/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
index b36091fad34e8607a8b458e148fd2b6963397abe..f0e6aee4ca75c8cbdccf7439e60c02ba9c34c7e5 100644
(file)
--- 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))))