summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>2023-05-09 17:15:47 -0400
committerMarge Bot <emma+marge@anholt.net>2023-05-12 12:11:38 +0000
commit86a053f7b903225b0a7992dd8d5e80c6f0360700 (patch)
tree0d424787686698e1919ff12f15e8374a35120e30 /docs
parentbd466195b9314997936fe6ea98e4d9eb3aa49eae (diff)
downloadmesa-86a053f7b903225b0a7992dd8d5e80c6f0360700.tar.gz
docs: Include ALU opcode descriptions
If we have a description for an ALU opcode in NIR, include it with our generated HTML documentation so people don't need to go to nir_opcodes.py anyway because the documentation is missing the documentation ;-) Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Jesse Natalie <jenatali@microsoft.com> Tested-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22929>
Diffstat (limited to 'docs')
-rw-r--r--docs/_exts/nir.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/_exts/nir.py b/docs/_exts/nir.py
index f7f6baff271..7d641d73006 100644
--- a/docs/_exts/nir.py
+++ b/docs/_exts/nir.py
@@ -58,6 +58,8 @@ def to_yn(b):
- ${to_yn('associative' in op.algebraic_properties)}
- ${to_yn('2src_commutative' in op.algebraic_properties)}
+${("**Description:** " + op.description) if op.description != "" else ""}
+
**Constant-folding:**
.. code-block:: c