projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1673bb3
)
softpipe: new comment and assertion for face value
author
Brian Paul
<brianp@vmware.com>
Sun, 18 Apr 2010 16:01:04 +0000
(10:01 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sun, 18 Apr 2010 16:02:11 +0000
(10:02 -0600)
src/gallium/drivers/softpipe/sp_quad_depth_test.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_quad_depth_test.c
b/src/gallium/drivers/softpipe/sp_quad_depth_test.c
index 4ee31969e6b2af34a826454d34608b4fe617efd4..72117c233e525c882f09b581d3a8febf7ff7b1ae 100644
(file)
--- 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;