summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source/tgsi.rst
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-01-16 16:40:41 +0100
committerNicolai Hähnle <[email protected]>2017-01-16 20:17:22 +0100
commit6be4a404300e4896ef531a10e24c6b76698afe1a (patch)
tree0a46e8ad9e353a9441bd04287afdfbcbbf66afbf /src/gallium/docs/source/tgsi.rst
parent5e94e5bb9bc30b575fdd3347bab7f170fb736e83 (diff)
tgsi: add DDIV instruction
Double-precision division, to allow more precision than a DRCP + DMUL sequence. Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/docs/source/tgsi.rst')
-rw-r--r--src/gallium/docs/source/tgsi.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index d2d30b41d00..3e2d0e9fac2 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -2005,6 +2005,15 @@ Perform a * b + c with no intermediate rounding step.
dst.zw = src0.zw \times src1.zw + src2.zw
+.. opcode:: DDIV - Divide
+
+.. math::
+
+ dst.xy = \frac{src0.xy}{src1.xy}
+
+ dst.zw = \frac{src0.zw}{src1.zw}
+
+
.. opcode:: DRCP - Reciprocal
.. math::