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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=192f9ab81b3e2c88812f540c7a5c820e3783ff8a;p=mesa.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 5229b310164..b72bbac0d4a 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]; } }