diff options
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2023-03-14 10:09:02 +0100 |
---|---|---|
committer | Erik Faye-Lund <kusmabite@gmail.com> | 2023-05-05 21:40:23 +0200 |
commit | f94c95ab5a16217bbdee785cf6b16c981d4fa808 (patch) | |
tree | 0ca5bbdda2fe831db69783f94a4b7364a5d8f017 /docs/gallium | |
parent | 02908b26bbb2bc0ee865ca52f616b6840d4abb43 (diff) | |
download | mesa-f94c95ab5a16217bbdee785cf6b16c981d4fa808.tar.gz |
docs/tgsi: use math-notations for conditionals
These are math-blocks, which is supposed to use math-notation for
conditionals. So let's change it to math notation.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21893>
Diffstat (limited to 'docs/gallium')
-rw-r--r-- | docs/gallium/tgsi.rst | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/docs/gallium/tgsi.rst b/docs/gallium/tgsi.rst index c5973cf5baa..9b5d807c217 100644 --- a/docs/gallium/tgsi.rst +++ b/docs/gallium/tgsi.rst @@ -85,10 +85,19 @@ used. .. math:: - dst.x &= 1 \\ - dst.y &= max(src.x, 0) \\ - dst.z &= (src.x > 0) ? max(src.y, 0)^{clamp(src.w, -128, 128))} : 0 \\ - dst.w &= 1 + dst.x = 1 + + dst.y = max(src.x, 0) + + dst.z = + \left\{ + \begin{array}{ c l } + max(src.y, 0)^{clamp(src.w, -128, 128)} & \quad \textrm{if } src.x \gt 0 \\ + 0 & \quad \textrm{otherwise} + \end{array} + \right. + + dst.w = 1 .. opcode:: RCP - Reciprocal @@ -2907,8 +2916,13 @@ These atomic operations may only be used with 32-bit integer image formats. dst_x = resource[offset] - resource[offset] = (dst_x > 0 && dst_x < src_x) ? dst_x - 1 : 0 - + resource[offset] = + \left\{ + \begin{array}{ c l } + dst_x - 1 & \quad \textrm{if } dst_x \gt 0 \textrm{ and } dst_x \lt src_x \\ + 0 & \quad \textrm{otherwise} + \end{array} + \right. .. _interlaneopcodes: |