docs/gallium: use table instead of list

This makes this a bit easer to read, as the equations line up properly.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19460>
This commit is contained in:
Erik Faye-Lund 2022-10-19 14:18:49 +02:00 committed by Marge Bot
parent c85a05a685
commit be857778bb

View file

@ -34,22 +34,26 @@ For a source component `s` and destination component `d`, the logical
operations are defined as taking the bits of each channel of each component,
and performing one of the following operations per-channel:
* ``CLEAR``: 0
* ``NOR``: :math:`\lnot(s \lor d)`
* ``AND_INVERTED``: :math:`\lnot s \land d`
* ``COPY_INVERTED``: :math:`\lnot s`
* ``AND_REVERSE``: :math:`s \land \lnot d`
* ``INVERT``: :math:`\lnot d`
* ``XOR``: :math:`s \oplus d`
* ``NAND``: :math:`\lnot(s \land d)`
* ``AND``: :math:`s \land d`
* ``EQUIV``: :math:`\lnot(s \oplus d)`
* ``NOOP``: :math:`d`
* ``OR_INVERTED``: :math:`\lnot s \lor d`
* ``COPY``: :math:`s`
* ``OR_REVERSE``: :math:`s \lor \lnot d`
* ``OR``: :math:`s \lor d`
* ``SET``: 1
================== =========================
Operation Equation
================== =========================
``CLEAR`` 0
``NOR`` :math:`\lnot(s \lor d)`
``AND_INVERTED`` :math:`\lnot s \land d`
``COPY_INVERTED`` :math:`\lnot s`
``AND_REVERSE`` :math:`s \land \lnot d`
``INVERT`` :math:`\lnot d`
``XOR`` :math:`s \oplus d`
``NAND`` :math:`\lnot(s \land d)`
``AND`` :math:`s \land d`
``EQUIV`` :math:`\lnot(s \oplus d)`
``NOOP`` :math:`d`
``OR_INVERTED`` :math:`\lnot s \lor d`
``COPY`` :math:`s`
``OR_REVERSE`` :math:`s \lor \lnot d`
``OR`` :math:`s \lor d`
``SET`` 1
================== =========================
.. note::
The logical operation names and definitions match those of the OpenGL API,