[Mesa-dev] [PATCH 02/13] gallium/docs: Use squarings
Alexander Troosh
trush at yandex.ru
Wed Oct 8 04:40:19 PDT 2014
---
src/gallium/docs/source/tgsi.rst | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 9b4a821..bdb4655 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -491,11 +491,11 @@ while DDY is allowed to be the same for the entire 2x2 quad.
.. math::
- dst.x = 2 \times (src0.x \times src1.x + src0.y \times src1.y + src0.z \times src1.z) / (src0.x \times src0.x + src0.y \times src0.y + src0.z \times src0.z) \times src0.x - src1.x
+ dst.x = 2 \times (src0.x \times src1.x + src0.y \times src1.y + src0.z \times src1.z) / ((src0.x)^2 + (src0.y)^2 + (src0.z)^2) \times src0.x - src1.x
- dst.y = 2 \times (src0.x \times src1.x + src0.y \times src1.y + src0.z \times src1.z) / (src0.x \times src0.x + src0.y \times src0.y + src0.z \times src0.z) \times src0.y - src1.y
+ dst.y = 2 \times (src0.x \times src1.x + src0.y \times src1.y + src0.z \times src1.z) / ((src0.x)^2 + (src0.y)^2 + (src0.z)^2) \times src0.y - src1.y
- dst.z = 2 \times (src0.x \times src1.x + src0.y \times src1.y + src0.z \times src1.z) / (src0.x \times src0.x + src0.y \times src0.y + src0.z \times src0.z) \times src0.z - src1.z
+ dst.z = 2 \times (src0.x \times src1.x + src0.y \times src1.y + src0.z \times src1.z) / ((src0.x)^2 + (src0.y)^2 + (src0.z)^2) \times src0.z - src1.z
dst.w = 1
@@ -838,11 +838,11 @@ This instruction replicates its result.
.. math::
- dst.x = src.x / (src.x \times src.x + src.y \times src.y + src.z \times src.z)
+ dst.x = src.x / ((src.x)^2 + (src.y)^2 + (src.z)^2)
- dst.y = src.y / (src.x \times src.x + src.y \times src.y + src.z \times src.z)
+ dst.y = src.y / ((src.x)^2 + (src.y)^2 + (src.z)^2)
- dst.z = src.z / (src.x \times src.x + src.y \times src.y + src.z \times src.z)
+ dst.z = src.z / ((src.x)^2 + (src.y)^2 + (src.z)^2)
dst.w = 1
@@ -1894,7 +1894,7 @@ This instruction replicates its result.
.. math::
- dst = \frac{src.x}{src.x \times src.x + src.y \times src.y + src.z \times src.z + src.w \times src.w}
+ dst = \frac{src.x}{(src.x)^2 + (src.y)^2 + (src.z)^2 + (src.w)^2}
Interpolation ISA
--
1.7.3.4
More information about the mesa-dev
mailing list