[Mesa-dev] [PATCH 10/13] gallium/docs: Use 'Pseudocode::'

Alexander Troosh trush at yandex.ru
Wed Oct 8 04:40:27 PDT 2014


---
 src/gallium/docs/source/tgsi.rst |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 1ca1238..f795c59 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -659,7 +659,7 @@ This instruction replicates its result.
 
   Conditional discard.  Allowed in fragment shaders only.
 
-.. math::
+ Pseudocode::
 
   if (src.x < 0 || src.y < 0 || src.z < 0 || src.w < 0)
     discard
@@ -790,6 +790,8 @@ This instruction replicates its result.
 
 .. opcode:: PUSHA - Push Address Register On Stack
 
+ Pseudocode::
+
   push(src.x)
   push(src.y)
   push(src.z)
@@ -805,6 +807,8 @@ This instruction replicates its result.
 
 .. opcode:: POPA - Pop Address Register From Stack
 
+ Pseudocode::
+
   dst.w = pop()
   dst.z = pop()
   dst.y = pop()
@@ -821,6 +825,8 @@ This instruction replicates its result.
 
 .. opcode:: BRA - Branch
 
+ Pseudocode::
+
   pc = target
 
 .. note::
@@ -1499,12 +1505,16 @@ Some require glsl version 1.30 (UIF/BREAKC/SWITCH/CASE/DEFAULT/ENDSWITCH).
 
 .. opcode:: CAL - Subroutine Call
 
+ Pseudocode::
+
   push(pc)
   pc = target
 
 
 .. opcode:: RET - Subroutine Call Return
 
+ Pseudocode::
+
   pc = pop()
 
 
-- 
1.7.3.4



More information about the mesa-dev mailing list