softpipe: can't no-op depth test stage when occlusion query is enabled
authorBrian Paul <brianp@vmware.com>
Tue, 9 Nov 2010 18:43:37 +0000 (11:43 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 9 Nov 2010 18:44:34 +0000 (11:44 -0700)
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31479

src/gallium/drivers/softpipe/sp_quad_depth_test.c

index c8f5f89568a684f6212f7d53c4023d9560ab305e..89b2a91fc1fca9a056b2231bb5ed996c94a317c7 100644 (file)
@@ -860,6 +860,7 @@ choose_depth_test(struct quad_stage *qs,
    /* look for special cases */
    if (!alpha &&
        !depth &&
+       !occlusion &&
        !stencil) {
       qs->run = depth_noop;
    }