Mesa (master): gallium/docs: notes on scissor state

Keith Whitwell keithw at kemper.freedesktop.org
Wed Aug 25 09:32:11 UTC 2010


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Aug 20 11:38:33 2010 +0100

gallium/docs: notes on scissor state

---

 src/gallium/docs/source/context.rst |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index f241411..8250c30 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -63,7 +63,9 @@ objects. They all follow simple, one-method binding calls, e.g.
 * ``set_scissor_state`` sets the bounds for the scissor test, which culls
   pixels before blending to render targets. If the :ref:`Rasterizer` does
   not have the scissor test enabled, then the scissor bounds never need to
-  be set since they will not be used.
+  be set since they will not be used.  Note that scissor xmin and ymin are
+  inclusive, but  xmax and ymax are exclusive.  The inclusive ranges in x
+  and y would be [xmin..xmax-1] and [ymin..ymax-1].
 * ``set_viewport_state``
 
 




More information about the mesa-commit mailing list