summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-14 09:49:02 +0100
committerErik Faye-Lund <kusmabite@gmail.com>2023-05-05 21:40:10 +0200
commitd22ee93f97ee2e13b8cf7f94f5889d511a1d7c2b (patch)
treef54c39dca49da2105a5307bd679c23fb2d191637 /docs
parentd8871ac2edf7ba6c53088951b411ac18546b8f89 (diff)
downloadmesa-d22ee93f97ee2e13b8cf7f94f5889d511a1d7c2b.tar.gz
docs/tgsi: fixup bad latex
It's better to split these two equations in two than to try to write extra text that needs lots of escaping. This fixes the LaTeX rendering to be somewhat readable. 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')
-rw-r--r--docs/gallium/tgsi.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/gallium/tgsi.rst b/docs/gallium/tgsi.rst
index 75138f30876..92123add73b 100644
--- a/docs/gallium/tgsi.rst
+++ b/docs/gallium/tgsi.rst
@@ -971,18 +971,25 @@ XXX doesn't look like most of the opcodes really belong here.
PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE changes the encoding so that component
is stored in the sampler source swizzle x.
+ (without TGSI_TG4_COMPONENT_IN_SWIZZLE)
+
.. math::
coord = src0
- (without TGSI_TG4_COMPONENT_IN_SWIZZLE)
component = src1
dst = texture\_gather4 (unit, coord, component)
- (with TGSI_TG4_COMPONENT_IN_SWIZZLE)
+ (with TGSI_TG4_COMPONENT_IN_SWIZZLE)
+
+ .. math::
+
+ coord = src0
+
dst = texture\_gather4 (unit, coord)
- component is encoded in sampler swizzle.
+
+ \text{component is encoded in sampler swizzle.}
(with SM5 - cube array shadow)