diff options
author | Brian Paul <[email protected]> | 2010-04-18 10:01:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-04-18 10:02:11 -0600 |
commit | 8fd0e453d7ccae2bf71573e99ba486e99b0c6882 (patch) | |
tree | 1bf2927679260dadbc0990cba415a5f5e68987a0 /src/gallium/drivers/softpipe | |
parent | 1673bb38bbc4b05f823abecbfaae06e9ce52eb9b (diff) |
softpipe: new comment and assertion for face value
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_quad_depth_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c b/src/gallium/drivers/softpipe/sp_quad_depth_test.c index 4ee31969e6b..72117c233e5 100644 --- a/src/gallium/drivers/softpipe/sp_quad_depth_test.c +++ b/src/gallium/drivers/softpipe/sp_quad_depth_test.c @@ -520,6 +520,9 @@ depth_stencil_test_quad(struct quad_stage *qs, face = 0; } + /* 0 = front-face, 1 = back-face */ + assert(face == 0 || face == 1); + /* choose front or back face function, operator, etc */ /* XXX we could do these initializations once per primitive */ func = softpipe->depth_stencil->stencil[face].func; |