[Mesa-dev] [PATCH 06/13] gallium/docs: more spaces and brackets, fix UMOD

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


---
 src/gallium/docs/source/tgsi.rst |   88 +++++++++++++++++++-------------------
 1 files changed, 44 insertions(+), 44 deletions(-)

diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index b1be923..2ace544 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -358,7 +358,7 @@ This instruction replicates its result.
 
 .. math::
 
-  dst = 2^{src.x}
+  dst = 2^{(src.x)}
 
 
 .. opcode:: LG2 - Logarithm Base 2
@@ -367,7 +367,7 @@ This instruction replicates its result.
 
 .. math::
 
-  dst = \log_2{src.x}
+  dst = \log_2{(src.x)}
 
 
 .. opcode:: POW - Power
@@ -376,7 +376,7 @@ This instruction replicates its result.
 
 .. math::
 
-  dst = src0.x^{src1.x}
+  dst = (src0.x)^{(src1.x)}
 
 .. opcode:: XPD - Cross Product
 
@@ -429,7 +429,7 @@ This instruction replicates its result.
 
 .. math::
 
-  dst = \cos{src.x}
+  dst = \cos{(src.x)}
 
 
 .. opcode:: DDX, DDX_FINE - Derivative Relative To X
@@ -548,7 +548,7 @@ This instruction replicates its result.
 
 .. math::
 
-  dst = \sin{src.x}
+  dst = \sin{(src.x)}
 
 
 .. opcode:: SLE - Set On Less Equal Than
@@ -605,7 +605,7 @@ This instruction replicates its result.
 
   coord = src0
 
-  shadow_ref = src0.z or src0.w (optional)
+  shadow_ref = src0.z \quad or \quad src0.w (optional)
 
   unit = src1
 
@@ -736,13 +736,13 @@ This instruction replicates its result.
 
 .. math::
 
-  dst.x = (src.x > 0) ? \quad 1 : (src.x < 0) ? \quad -1 : 0
+  dst.x = (src.x > 0) ? \quad 1 : ((src.x < 0) ? \quad -1 : 0)
 
-  dst.y = (src.y > 0) ? \quad 1 : (src.y < 0) ? \quad -1 : 0
+  dst.y = (src.y > 0) ? \quad 1 : ((src.y < 0) ? \quad -1 : 0)
 
-  dst.z = (src.z > 0) ? \quad 1 : (src.z < 0) ? \quad -1 : 0
+  dst.z = (src.z > 0) ? \quad 1 : ((src.z < 0) ? \quad -1 : 0)
 
-  dst.w = (src.w > 0) ? \quad 1 : (src.w < 0) ? \quad -1 : 0
+  dst.w = (src.w > 0) ? \quad 1 : ((src.w < 0) ? \quad -1 : 0)
 
 
 .. opcode:: CMP - Compare
@@ -778,9 +778,9 @@ This instruction replicates its result.
 
 .. math::
 
-  dst.x = \cos{src.x}
+  dst.x = \cos{(src.x)}
 
-  dst.y = \sin{src.x}
+  dst.y = \sin{(src.x)}
 
   dst.z = 0
 
@@ -1299,52 +1299,52 @@ Support for these opcodes indicated by PIPE_SHADER_CAP_INTEGERS (all of them?)
 
 .. math::
 
-  dst.x = src0.x \ src1.x
+  dst.x = src0.x \quad \% \quad src1.x
 
-  dst.y = src0.y \ src1.y
+  dst.y = src0.y \quad \% \quad src1.y
 
-  dst.z = src0.z \ src1.z
+  dst.z = src0.z \quad \% \quad src1.z
 
-  dst.w = src0.w \ src1.w
+  dst.w = src0.w \quad \% \quad src1.w
 
 
 .. opcode:: NOT - Bitwise Not
 
 .. math::
 
-  dst.x = \sim src.x
+  dst.x = \quad \sim (src.x)
 
-  dst.y = \sim src.y
+  dst.y = \quad \sim (src.y)
 
-  dst.z = \sim src.z
+  dst.z = \quad \sim (src.z)
 
-  dst.w = \sim src.w
+  dst.w = \quad \sim (src.w)
 
 
 .. opcode:: AND - Bitwise And
 
 .. math::
 
-  dst.x = src0.x \& src1.x
+  dst.x = src0.x \quad \& \quad src1.x
 
-  dst.y = src0.y \& src1.y
+  dst.y = src0.y \quad \& \quad src1.y
 
-  dst.z = src0.z \& src1.z
+  dst.z = src0.z \quad \& \quad src1.z
 
-  dst.w = src0.w \& src1.w
+  dst.w = src0.w \quad \& \quad src1.w
 
 
 .. opcode:: OR - Bitwise Or
 
 .. math::
 
-  dst.x = src0.x | src1.x
+  dst.x = src0.x \quad | \quad src1.x
 
-  dst.y = src0.y | src1.y
+  dst.y = src0.y \quad | \quad src1.y
 
-  dst.z = src0.z | src1.z
+  dst.z = src0.z \quad | \quad src1.z
 
-  dst.w = src0.w | src1.w
+  dst.w = src0.w \quad | \quad src1.w
 
 
 .. opcode:: XOR - Bitwise Xor
@@ -1418,13 +1418,13 @@ Support for these opcodes indicated by PIPE_SHADER_CAP_INTEGERS (all of them?)
 
 .. math::
 
-  dst.x = src0.x << (0x1f \& src1.x)
+  dst.x = src0.x << (0x1f \quad \& \quad src1.x)
 
-  dst.y = src0.y << (0x1f \& src1.y)
+  dst.y = src0.y << (0x1f \quad \& \quad src1.y)
 
-  dst.z = src0.z << (0x1f \& src1.z)
+  dst.z = src0.z << (0x1f \quad \& \quad src1.z)
 
-  dst.w = src0.w << (0x1f \& src1.w)
+  dst.w = src0.w << (0x1f \quad \& \quad src1.w)
 
 
 .. opcode:: ISHR - Arithmetic Shift Right (of Signed Integer)
@@ -1433,13 +1433,13 @@ Support for these opcodes indicated by PIPE_SHADER_CAP_INTEGERS (all of them?)
 
 .. math::
 
-  dst.x = src0.x >> (0x1f \& src1.x)
+  dst.x = src0.x >> (0x1f \quad \& \quad src1.x)
 
-  dst.y = src0.y >> (0x1f \& src1.y)
+  dst.y = src0.y >> (0x1f \quad \& \quad src1.y)
 
-  dst.z = src0.z >> (0x1f \& src1.z)
+  dst.z = src0.z >> (0x1f \quad \& \quad src1.z)
 
-  dst.w = src0.w >> (0x1f \& src1.w)
+  dst.w = src0.w >> (0x1f \quad \& \quad src1.w)
 
 
 .. opcode:: USHR - Logical Shift Right
@@ -1448,13 +1448,13 @@ Support for these opcodes indicated by PIPE_SHADER_CAP_INTEGERS (all of them?)
 
 .. math::
 
-  dst.x = src0.x >> (unsigned) (0x1f \& src1.x)
+  dst.x = src0.x >> (unsigned) (0x1f \quad \& \quad src1.x)
 
-  dst.y = src0.y >> (unsigned) (0x1f \& src1.y)
+  dst.y = src0.y >> (unsigned) (0x1f \quad \& \quad src1.y)
 
-  dst.z = src0.z >> (unsigned) (0x1f \& src1.z)
+  dst.z = src0.z >> (unsigned) (0x1f \quad \& \quad src1.z)
 
-  dst.w = src0.w >> (unsigned) (0x1f \& src1.w)
+  dst.w = src0.w >> (unsigned) (0x1f \quad \& \quad src1.w)
 
 
 .. opcode:: UCMP - Integer Conditional Move
@@ -1475,13 +1475,13 @@ Support for these opcodes indicated by PIPE_SHADER_CAP_INTEGERS (all of them?)
 
 .. math::
 
-  dst.x = (src0.x < 0) ? \quad -1 : (src0.x > 0) ? \quad 1 : 0
+  dst.x = (src0.x < 0) ? \quad -1 : ((src0.x > 0) ? \quad 1 : 0)
 
-  dst.y = (src0.y < 0) ? \quad -1 : (src0.y > 0) ? \quad 1 : 0
+  dst.y = (src0.y < 0) ? \quad -1 : ((src0.y > 0) ? \quad 1 : 0)
 
-  dst.z = (src0.z < 0) ? \quad -1 : (src0.z > 0) ? \quad 1 : 0
+  dst.z = (src0.z < 0) ? \quad -1 : ((src0.z > 0) ? \quad 1 : 0)
 
-  dst.w = (src0.w < 0) ? \quad -1 : (src0.w > 0) ? \quad 1 : 0
+  dst.w = (src0.w < 0) ? \quad -1 : ((src0.w > 0) ? \quad 1 : 0)
 
 
 
-- 
1.7.3.4



More information about the mesa-dev mailing list