softpipe: new comment and assertion for face value
authorBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 16:01:04 +0000 (10:01 -0600)
committerBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 16:02:11 +0000 (10:02 -0600)
src/gallium/drivers/softpipe/sp_quad_depth_test.c

index 4ee31969e6b2af34a826454d34608b4fe617efd4..72117c233e525c882f09b581d3a8febf7ff7b1ae 100644 (file)
@@ -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;