summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_depth_test.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-25 09:46:04 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-25 09:46:04 -0600
commit192f9ab81b3e2c88812f540c7a5c820e3783ff8a (patch)
treec0eeb61847d85babeb607efea8328d804c645e9b /src/mesa/pipe/softpipe/sp_quad_depth_test.c
parent363e6020429f31d6b923fcd05407d7f3e36bc9ba (diff)
fix logic error in updating of quad's Z values. Basic depth testing works now
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_depth_test.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_depth_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
index 5229b31016..b72bbac0d4 100644
--- a/src/mesa/pipe/softpipe/sp_quad_depth_test.c
+++ b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
@@ -84,7 +84,7 @@ depth_test_quad(struct quad_stage *qs, struct quad_header *quad)
/* This is also efficient with sse / spe instructions:
*/
for (j = 0; j < QUAD_SIZE; j++) {
- if (zmask & (1 << j)) {
+ if (quad->mask & (1 << j)) {
zzzz[j] = quad->outputs.depth[j];
}
}