summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2010-01-04 12:59:17 +0100
committerMichal Krol <[email protected]>2010-01-04 12:59:17 +0100
commitb3567fc9837cf12c03fe901b01cc4878e007fe52 (patch)
treec5aa00b020c5b1b774647b7a858758e4537944d9 /src
parentb6659681f2ec73026eecafd54bfad72c2712b4dd (diff)
docs: Clarify math description of TGSI LRP instruction operation.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/docs/source/tgsi.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 12c36809734..30d74aefd48 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -251,13 +251,13 @@ LRP - Linear Interpolate
.. math::
- dst.x = src0.x \times (src1.x - src2.x) + src2.x
+ dst.x = src0.x \times src1.x + (1 - src0.x) \times src2.x
- dst.y = src0.y \times (src1.y - src2.y) + src2.y
+ dst.y = src0.y \times src1.y + (1 - src0.y) \times src2.y
- dst.z = src0.z \times (src1.z - src2.z) + src2.z
+ dst.z = src0.z \times src1.z + (1 - src0.z) \times src2.z
- dst.w = src0.w \times (src1.w - src2.w) + src2.w
+ dst.w = src0.w \times src1.w + (1 - src0.w) \times src2.w
CND - Condition