Mesa (gallium-docs): Document rasterizer.

Corbin Simpson csimpson at
Mon Dec 21 01:26:05 UTC 2009

Module: Mesa
Branch: gallium-docs
Commit: fa33812d47bde327ca69dc3f849404fb22b6f34f

Author: Corbin Simpson <MostAwesomeDude at>
Date:   Sun Dec 20 17:25:36 2009 -0800

Document rasterizer.


 src/gallium/docs/source/cso/rasterizer.rst |   76 +++++++++++++++++++++++++++-
 1 files changed, 75 insertions(+), 1 deletions(-)

diff --git a/src/gallium/docs/source/cso/rasterizer.rst b/src/gallium/docs/source/cso/rasterizer.rst
index 145ce25..b87d121 100644
--- a/src/gallium/docs/source/cso/rasterizer.rst
+++ b/src/gallium/docs/source/cso/rasterizer.rst
@@ -7,4 +7,78 @@ interpolated into fragments.
+XXX undocumented light_twoside, front_winding, cull_mode, fill_cw, fill_ccw, offset_cw, offset_ccw
+XXX moar undocumented poly_smooth, line_stipple_factor, line_last_pixel, offset_units, offset_scale
+XXX sprite_coord_mode
+    If set, the provoking vertex of each polygon is used to determine the
+    color of the entire polygon. If not set, the color fragments will be
+    interpolated from each vertex's color.
+    Whether the scissor test is enabled.
+    Whether polygon stippling is enabled.
+    Whether points should be smoothed. Point smoothing turns rectangular
+    points into circles or ovals.
+    Whether point sprites are enabled.
+    Whether vertices have a point size element.
+    Whether MSAA is enabled.
+    Whether lines should be smoothed. Line smoothing is simply anti-aliasing.
+    Whether line stippling is enabled.
+    16-bit bitfield of on/off flags, used to pattern the line stipple.
+    Whether the entire TCL pipeline should be bypassed. This implies that
+    vertices are pre-transformed for the viewport, and will not be run
+    through the vertex shader. Note that implementations may still clip away
+    vertices that are not in the viewport.
+    Whether the first vertex should be the provoking vertex, for most
+    primitives. If not set, the last vertex is the provoking vertex.
+    Whether the rasterizer should use (0.5, 0.5) pixel centers. When not set,
+    the rasterizer will use (0, 0) for pixel centers.
+    The width of lines.
+    The size of points, if not specified per-vertex.
+    The minimum size of points.
+    The maximum size of points.
+The actual interpolated shading algorithm is obviously
+implementation-dependent, but will usually be Gourard for most hardware.
+When set, this implies that vertices are pre-transformed for the viewport, and
+will not be run through the vertex shader. Note that implementations may still
+clip away vertices that are not visible.
+There are several important exceptions to the specification of this rule.
+* PIPE_PRIMITIVE_POLYGON: The provoking vertex is always the first vertex.
+  If the caller wishes to change the provoking vertex, they merely need to
+  rotate the vertices themselves.
+* PIPE_PRIMITIVE_TRIANGLE_FAN: When set, the provoking vertex is the second
+  vertex, not the first. This permits each segment of the fan to have a
+  different color.

More information about the mesa-commit mailing list