summaryrefslogtreecommitdiff
path: root/src/gallium/docs/source/context.rst
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-10-21 19:05:40 -0600
committerBrian Paul <brianp@vmware.com>2010-10-21 19:05:47 -0600
commit69a07be3e527dbc2148a4e20c50e60266225f5f2 (patch)
tree82583b98708fc7a6c33b471d45670e2566ed0daf /src/gallium/docs/source/context.rst
parent1d91f8d9164b38b4c924f43ec4fc5ceb65c96a78 (diff)
parentb2d4dfe5cc5b24743175bf35285dfc57f86bc09d (diff)
Merge branch 'primitive-restart-cleanup'
Conflicts: docs/relnotes-7.10.html This branch is a re-do of the primitive-restart branch with all the intermediate/temporary stuff cleaned out.
Diffstat (limited to 'src/gallium/docs/source/context.rst')
-rw-r--r--src/gallium/docs/source/context.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index 5342fc25dc..e09a1304c4 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -156,6 +156,15 @@ If there is an index buffer bound, and ``indexed`` field is true, all vertex
indices will be looked up in the index buffer. ``min_index``, ``max_index``,
and ``index_bias`` apply after index lookup.
+When drawing indexed primitives, the primitive restart index can be
+used to draw disjoint primitive strips. For example, several separate
+line strips can be drawn by designating a special index value as the
+restart index. The ``primitive_restart`` flag enables/disables this
+feature. The ``restart_index`` field specifies the restart index value.
+
+When primitive restart is in use, array indexes are compared to the
+restart index before adding the index_bias offset.
+
If a given vertex element has ``instance_divisor`` set to 0, it is said
it contains per-vertex data and effective vertex attribute address needs
to be recalculated for every index.