summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source/cso/dsa.rst
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-12-20 16:40:39 -0800
committerCorbin Simpson <[email protected]>2009-12-20 16:40:39 -0800
commitc80f2b04e0d235cfe623c968a670e6d34b8c2add (patch)
tree8915e804bee1d9a3d957ad7815a0bab856871092 /src/gallium/docs/source/cso/dsa.rst
parent8283e200af40140b61080f7b9f005b291fb752df (diff)
Fill out some of the CSO info.
...And looks like there's already things I don't know. Go figure.
Diffstat (limited to 'src/gallium/docs/source/cso/dsa.rst')
-rw-r--r--src/gallium/docs/source/cso/dsa.rst39
1 files changed, 36 insertions, 3 deletions
diff --git a/src/gallium/docs/source/cso/dsa.rst b/src/gallium/docs/source/cso/dsa.rst
index 5f23896f6e7..0be7af5029a 100644
--- a/src/gallium/docs/source/cso/dsa.rst
+++ b/src/gallium/docs/source/cso/dsa.rst
@@ -7,17 +7,50 @@ discard fragments that have passed through the fragment shader.
Traditionally, these three tests have been clumped together in hardware, so
they are all stored in one structure.
+During actual execution, the order of operations done on fragments is always:
+
+* Stencil
+* Depth
+* Alpha
+
Depth Members
-------------
-XXX
+enabled
+ Whether the depth test is enabled.
+writemask
+ Whether the depth buffer receives depth writes.
+func
+ The depth test function. One of PIPE_FUNC.
Stencil Members
---------------
-XXX
+XXX document valuemask, writemask
+
+enabled
+ Whether the stencil test is enabled. For the second stencil, whether the
+ two-sided stencil is enabled.
+func
+ The stencil test function. One of PIPE_FUNC.
+ref_value
+ Stencil test reference value; used for certain functions.
+fail_op
+ The operation to carry out if the stencil test fails. One of
+ PIPE_STENCIL_OP.
+zfail_op
+ The operation to carry out if the stencil test passes but the depth test
+ fails. One of PIPE_STENCIL_OP.
+zpass_op
+ The operation to carry out if the stencil test and depth test both pass.
+ One of PIPE_STENCIL_OP.
Alpha Members
-------------
-XXX
+enabled
+ Whether the alpha test is enabled.
+func
+ The alpha test function. One of PIPE_FUNC.
+ref_value
+ Alpha test reference value; used for certain functions.