Mesa (master): docs: fix point sprite documentation

Roland Scheidegger sroland at kemper.freedesktop.org
Tue Feb 9 18:32:48 UTC 2010


Module: Mesa
Branch: master
Commit: c2b85e335dd798facb8ec43a4bb00fe0e05cf863
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2b85e335dd798facb8ec43a4bb00fe0e05cf863

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Wed Feb  3 17:39:47 2010 +0100

docs: fix point sprite documentation

---

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

diff --git a/src/gallium/docs/source/cso/rasterizer.rst b/src/gallium/docs/source/cso/rasterizer.rst
index 89c3c06..721229d 100644
--- a/src/gallium/docs/source/cso/rasterizer.rst
+++ b/src/gallium/docs/source/cso/rasterizer.rst
@@ -82,17 +82,18 @@ point_size_per_vertex
     Whether vertices have a point size element.
 point_size
     The size of points, if not specified per-vertex.
-point_sprite
-    Whether points are drawn as sprites (textured quads). This is mutually
-    exclusive with point_smooth. Note that sprite_coord_mode set to
-    PIPE_SPRITE_COORD_NONE for all coords and point_sprite enabled is basically
-    equivalent to point_sprite disabled.
+sprite_coord_enable
+    Specifies if a coord has its texture coordinates replaced or not. This
+    is a packed bitfield containing the enable for all coords - if all are 0
+    point sprites are effectively disabled. If any coord is non-zero,
+    point_smooth should be disabled.
+    If enabled, the four vertices of the resulting quad will be assigned
+    texture coordinates, according to sprite_coord_mode.
 sprite_coord_mode
     Specifies how the value for each shader output should be computed when
-    drawing sprites.  If PIPE_SPRITE_COORD_NONE, don't change the vertex
-    shader output.  Otherwise, the four vertices of the resulting quad will
-    be assigned texture coordinates.  For PIPE_SPRITE_COORD_LOWER_LEFT, the
-    lower left vertex will have coordinate (0,0,0,1).
+    drawing sprites, for each coord which has sprite_coord_enable set.
+    For PIPE_SPRITE_COORD_LOWER_LEFT, the lower left vertex will have
+    coordinate (0,0,0,1).
     For PIPE_SPRITE_COORD_UPPER_LEFT, the upper-left vertex will have
     coordinate (0,0,0,1).
     This state is needed by the 'draw' module because that's where each




More information about the mesa-commit mailing list