summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source/tgsi.rst
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-06-01 20:02:17 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-06-01 20:03:59 +0200
commit6b53e2b0380ce1617402217cb77d5670a44c3fb5 (patch)
tree9f08e11c326a16d420b6421538d32c4682bafd03 /src/gallium/docs/source/tgsi.rst
parent458a9a0f85b93e3520c33dd3b502e26a31f08e4b (diff)
downloadexternal_mesa3d-6b53e2b0380ce1617402217cb77d5670a44c3fb5.zip
external_mesa3d-6b53e2b0380ce1617402217cb77d5670a44c3fb5.tar.gz
external_mesa3d-6b53e2b0380ce1617402217cb77d5670a44c3fb5.tar.bz2
gallium: add support for layered rendering
Since pipe_surface already has all the necessary fields no interface changes are necessary except adding a new shader semantic value (TGSI_SEMANTIC_LAYER). (Note that what GL knows as "gl_Layer" variable d3d10 is naming "RENDER_TARGET_ARRAY_INDEX".) v2: drop cap bit (just tied to geometry shader), add docs.
Diffstat (limited to 'src/gallium/docs/source/tgsi.rst')
-rw-r--r--src/gallium/docs/source/tgsi.rst22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 3af1fb7..9265271 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -2400,14 +2400,32 @@ Edge flags are used to control which lines or points are actually
drawn when the polygon mode converts triangles/quads/polygons into
points or lines.
+
TGSI_SEMANTIC_STENCIL
-""""""""""""""""""""""
+"""""""""""""""""""""
-For fragment shaders, this semantic label indicates than an output
+For fragment shaders, this semantic label indicates that an output
is a writable stencil reference value. Only the Y component is writable.
This allows the fragment shader to change the fragments stencilref value.
+TGSI_SEMANTIC_VIEWPORT_INDEX
+""""""""""""""""""""""""""""
+
+For geometry shaders, this semantic label indicates that an output
+contains the index of the viewport (and scissor) to use.
+Only the X value is used.
+
+
+TGSI_SEMANTIC_LAYER
+"""""""""""""""""""
+
+For geometry shaders, this semantic label indicates that an output
+contains the layer value to use for the color and depth/stencil surfaces.
+Only the X value is used. (Also known as rendertarget array index.)
+
+
+
Declaration Interpolate
^^^^^^^^^^^^^^^^^^^^^^^