summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_quad.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-13 09:25:57 -0600
committerBrian <[email protected]>2007-07-13 09:25:57 -0600
commit563479552e2f491fb94e7fac5772f3c72cee962a (patch)
treecc9d7617d45b14d3ff9e2b1517f64fd2b4079eeb /src/mesa/pipe/softpipe/sp_quad.c
parent676fcf0de270651311a6b812e98f2e71d7dae925 (diff)
Added basic occlusion counting
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad.c b/src/mesa/pipe/softpipe/sp_quad.c
index 5f34f5f1b34..c27f14f32ec 100644
--- a/src/mesa/pipe/softpipe/sp_quad.c
+++ b/src/mesa/pipe/softpipe/sp_quad.c
@@ -31,6 +31,11 @@ sp_build_quad_pipeline(struct softpipe_context *sp)
sp->quad.first = sp->quad.bufloop;
}
+ if (sp->depth_test.occlusion_count) {
+ sp->quad.occlusion->next = sp->quad.first;
+ sp->quad.first = sp->quad.occlusion;
+ }
+
if ( sp->stencil.front_enabled
|| sp->stencil.front_enabled) {
sp->quad.stencil_test->next = sp->quad.first;