[Mesa-dev] [PATCH 08/13] gallium/docs: Explanation of function insert to table

Alexander Troosh trush at yandex.ru
Wed Oct 8 04:40:25 PDT 2014


---
 src/gallium/docs/source/tgsi.rst |   59 +++++++++++++++++++------------------
 1 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 38b5602..f91e7d6 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -2220,36 +2220,37 @@ Functions
 ^^^^^^^^^^^^^^
 
 
-  :math:`|x|`       Absolute value of `x`.
++--------------------------+--------------------------------------------------------------+
+| :math:`|x|`              |Absolute value of `x`.                                        |
++--------------------------+--------------------------------------------------------------+
+| :math:`\lceil x \rceil`  | Ceiling of `x`.                                              |
++--------------------------+--------------------------------------------------------------+
+| clamp(x,y,z)             |:math:`(x < y) ? \quad y : ((x > z) ? \quad z : x) \quad`     |
+|                          |Clamp x between y and z.                                      |
++--------------------------+--------------------------------------------------------------+
+| :math:`\lfloor x\rfloor` | Floor of `x`.                                                |
++--------------------------+--------------------------------------------------------------+
+| :math:`\log_2{x}`        |Logarithm of `x`, base 2.                                     |
++--------------------------+--------------------------------------------------------------+
+| max(x,y)                 |:math:`(x > y) ? \quad x : y \qquad` Maximum of x and y.      |
++--------------------------+--------------------------------------------------------------+
+| min(x,y)                 |:math:`(x < y) ? \quad x : y \qquad` Minimum of x and y.      |
++--------------------------+--------------------------------------------------------------+
+| partialx(x)              |Derivative of x relative to fragment's X.                     |
++--------------------------+--------------------------------------------------------------+
+| partialy(x)              |Derivative of x relative to fragment's Y.                     |
++--------------------------+--------------------------------------------------------------+
+| pop()                    |Pop from stack.                                               |
++--------------------------+--------------------------------------------------------------+
+| :math:`x^y`              |`x` to the power `y`.                                         |
++--------------------------+--------------------------------------------------------------+
+| push(x)                  |Push x on stack.                                              |
++--------------------------+--------------------------------------------------------------+
+| round(x)                 |Round x.                                                      |
++--------------------------+--------------------------------------------------------------+
+| trunc(x)                 |Truncate x, i.e. drop the fraction bits.                      |
++--------------------------+--------------------------------------------------------------+
 
-  :math:`\lceil x \rceil` Ceiling of `x`.
-
-  clamp(x,y,z)      Clamp x between y and z.
-                    (x < y) ? \quad y : (x > z) ? \quad z : x
-
-  :math:`\lfloor x\rfloor` Floor of `x`.
-
-  :math:`\log_2{x}` Logarithm of `x`, base 2.
-
-  max(x,y)          Maximum of x and y.
-                    (x > y) ? \quad x : y
-
-  min(x,y)          Minimum of x and y.
-                    (x < y) ? \quad x : y
-
-  partialx(x)       Derivative of x relative to fragment's X.
-
-  partialy(x)       Derivative of x relative to fragment's Y.
-
-  pop()             Pop from stack.
-
-  :math:`x^y`       `x` to the power `y`.
-
-  push(x)           Push x on stack.
-
-  round(x)          Round x.
-
-  trunc(x)          Truncate x, i.e. drop the fraction bits.
 
 
 Keywords
-- 
1.7.3.4



More information about the mesa-dev mailing list