[Mesa-dev] [PATCH 03/11] tgsi: fix the documentation of DLDEXP
Nicolai Hähnle
nhaehnle at gmail.com
Sat Sep 16 11:23:45 UTC 2017
From: Nicolai Hähnle <nicolai.haehnle at amd.com>
Sourcing the exponent for the zw destination pair from Z is consistent
with both tgsi_exec and gallivm. In practice, st_glsl_to_tgsi always
generates per-channel instructions anyway.
---
src/gallium/docs/source/tgsi.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 0bd9964a985..8633c929b9f 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -1852,21 +1852,21 @@ exponent of its source to ``dst0``, and the significand to ``dst1``, such that
.. opcode:: DLDEXP - Multiply Number by Integral Power of 2
This opcode is the inverse of :opcode:`DFRACEXP`. The second
source is an integer.
.. math::
dst.xy = src0.xy \times 2^{src1.x}
- dst.zw = src0.zw \times 2^{src1.y}
+ dst.zw = src0.zw \times 2^{src1.z}
.. opcode:: DMIN - Minimum
.. math::
dst.xy = min(src0.xy, src1.xy)
dst.zw = min(src0.zw, src1.zw)
.. opcode:: DMAX - Maximum
--
2.11.0
More information about the mesa-dev
mailing list