From: Brian Date: Mon, 25 Jun 2007 15:46:04 +0000 (-0600) Subject: fix logic error in updating of quad's Z values. Basic depth testing works now X-Git-Tag: 062012170305~17580^2~390^2~4760 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=192f9ab81b3e2c88812f540c7a5c820e3783ff8a;p=profile%2Fivi%2Fmesa.git fix logic error in updating of quad's Z values. Basic depth testing works now --- diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c index 5229b31..b72bbac 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]; } }