diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-07-10 18:59:17 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-07-10 18:59:17 -0600 |
commit | 73daa688541ec88119804ad190ce5b429e50ea44 (patch) | |
tree | 51b54851b3f74557a82bae2a88f0af6af7a08fc9 /src/mesa/pipe/softpipe/sp_quad_depth_test.c | |
parent | e6eca5c37e13fd0f9100de127075b1bbed0821c0 (diff) |
Checkpoint: stencil roughly working, some bugs to fix...
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_depth_test.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_depth_test.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c index f7dc5c877b..d47c4c42b8 100644 --- a/src/mesa/pipe/softpipe/sp_quad_depth_test.c +++ b/src/mesa/pipe/softpipe/sp_quad_depth_test.c @@ -35,8 +35,12 @@ #include "sp_quad.h" -static void -depth_test_quad(struct quad_stage *qs, struct quad_header *quad) +/** + * Do depth testing for a quad. + * Not static since it's used by the stencil code. + */ +void +sp_depth_test_quad(struct quad_stage *qs, struct quad_header *quad) { struct softpipe_context *softpipe = qs->softpipe; struct softpipe_surface *sps = softpipe_surface(softpipe->framebuffer.zbuf); @@ -137,6 +141,13 @@ depth_test_quad(struct quad_stage *qs, struct quad_header *quad) /* write updated zquad to zbuffer */ sps->write_quad_z(sps, quad->x0, quad->y0, bzzzz); } +} + + +static void +depth_test_quad(struct quad_stage *qs, struct quad_header *quad) +{ + sp_depth_test_quad(qs, quad); if (quad->mask) qs->next->run(qs->next, quad); |