From d22ee93f97ee2e13b8cf7f94f5889d511a1d7c2b Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 14 Mar 2023 09:49:02 +0100 Subject: 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 Reviewed-by: Roland Scheidegger Part-of: --- docs/gallium/tgsi.rst | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'docs') 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) -- cgit v1.2.1