Mesa (master): gallium/docs: update SLT, SGE, SFL, STR opcode docs

Brian Paul brianp at kemper.freedesktop.org
Tue Mar 18 14:06:04 UTC 2014


Module: Mesa
Branch: master
Commit: 63e7b519120c5ce611b6e77e0d1d93e10ed41a05
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=63e7b519120c5ce611b6e77e0d1d93e10ed41a05

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Mar 17 15:13:55 2014 -0600

gallium/docs: update SLT, SGE, SFL, STR opcode docs

To emphasize that the result is floating point 1.0 or 0.0, to match
other opcodes like SLE and SEQ.

Reviewed-by: Roland Scheidegger <sroland at vmware.com>

---

 src/gallium/docs/source/tgsi.rst |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 03c5df8..e184b2f 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -223,26 +223,26 @@ This instruction replicates its result.
 
 .. math::
 
-  dst.x = (src0.x < src1.x) ? 1 : 0
+  dst.x = (src0.x < src1.x) ? 1.0F : 0.0F
 
-  dst.y = (src0.y < src1.y) ? 1 : 0
+  dst.y = (src0.y < src1.y) ? 1.0F : 0.0F
 
-  dst.z = (src0.z < src1.z) ? 1 : 0
+  dst.z = (src0.z < src1.z) ? 1.0F : 0.0F
 
-  dst.w = (src0.w < src1.w) ? 1 : 0
+  dst.w = (src0.w < src1.w) ? 1.0F : 0.0F
 
 
 .. opcode:: SGE - Set On Greater Equal Than
 
 .. math::
 
-  dst.x = (src0.x >= src1.x) ? 1 : 0
+  dst.x = (src0.x >= src1.x) ? 1.0F : 0.0F
 
-  dst.y = (src0.y >= src1.y) ? 1 : 0
+  dst.y = (src0.y >= src1.y) ? 1.0F : 0.0F
 
-  dst.z = (src0.z >= src1.z) ? 1 : 0
+  dst.z = (src0.z >= src1.z) ? 1.0F : 0.0F
 
-  dst.w = (src0.w >= src1.w) ? 1 : 0
+  dst.w = (src0.w >= src1.w) ? 1.0F : 0.0F
 
 
 .. opcode:: MAD - Multiply And Add
@@ -527,7 +527,7 @@ This instruction replicates its result.
 
 .. math::
 
-  dst = 0
+  dst = 0.0F
 
 .. note::
 
@@ -588,7 +588,7 @@ This instruction replicates its result.
 
 .. math::
 
-  dst = 1
+  dst = 1.0F
 
 
 .. opcode:: TEX - Texture Lookup




More information about the mesa-commit mailing list