Mesa (gallium-docs): docs: Clarify math description of TGSI LRP instruction operation.
MichaŠKról
michal at kemper.freedesktop.org
Mon Jan 4 12:39:09 UTC 2010
Module: Mesa
Branch: gallium-docs
Commit: b3567fc9837cf12c03fe901b01cc4878e007fe52
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3567fc9837cf12c03fe901b01cc4878e007fe52
Author: Michal Krol <michal at vmware.com>
Date: Mon Jan 4 12:59:17 2010 +0100
docs: Clarify math description of TGSI LRP instruction operation.
---
src/gallium/docs/source/tgsi.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 12c3680..30d74ae 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
More information about the mesa-commit
mailing list