diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-07-10 16:37:18 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-07-10 16:37:18 -0600 |
commit | e6eca5c37e13fd0f9100de127075b1bbed0821c0 (patch) | |
tree | 2e4d852baabd395dfb7cba8f8246772b0918f709 /src/mesa/pipe/softpipe/sp_quad.c | |
parent | 227c95737bcf373f934bb96aa0777c45c8575074 (diff) |
Begin hooking up stenciling.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad.c b/src/mesa/pipe/softpipe/sp_quad.c index 63126a4da3..31278f529d 100644 --- a/src/mesa/pipe/softpipe/sp_quad.c +++ b/src/mesa/pipe/softpipe/sp_quad.c @@ -16,7 +16,12 @@ sp_build_quad_pipeline(struct softpipe_context *sp) sp->quad.first = sp->quad.blend; } - if (sp->depth_test.enabled) { + if ( sp->stencil.front_enabled + || sp->stencil.front_enabled) { + sp->quad.stencil_test->next = sp->quad.first; + sp->quad.first = sp->quad.stencil_test; + } + else if (sp->depth_test.enabled) { sp->quad.depth_test->next = sp->quad.first; sp->quad.first = sp->quad.depth_test; } |