mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 15:00:22 +01:00
tgsi: Note that LOG and EXP are approximations.
This commit is contained in:
parent
5d0f69e33d
commit
bbf84cca57
1 changed files with 2 additions and 2 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue