fix logic error in updating of quad's Z values. Basic depth testing works now
authorBrian <brian.paul@tungstengraphics.com>
Mon, 25 Jun 2007 15:46:04 +0000 (09:46 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 25 Jun 2007 15:46:04 +0000 (09:46 -0600)
src/mesa/pipe/softpipe/sp_quad_depth_test.c

index 5229b3101641e5e892701b432ab7874b4c1a0f26..b72bbac0d4a5e2be1c79433a10d0aab40da99921 100644 (file)
@@ -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];
         }
       }