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>
This commit is contained in:
Erik Faye-Lund
2023-03-14 09:49:02 +01:00
committed by Erik Faye-Lund
parent d8871ac2ed
commit d22ee93f97

View File

@@ -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)