From 61ea76c8da5511d8d3f1fc3ea409ddbef89e7488 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 9 Nov 2010 11:43:37 -0700 Subject: [PATCH] softpipe: can't no-op depth test stage when occlusion query is enabled Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31479 --- src/gallium/drivers/softpipe/sp_quad_depth_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c b/src/gallium/drivers/softpipe/sp_quad_depth_test.c index c8f5f89..89b2a91 100644 --- a/src/gallium/drivers/softpipe/sp_quad_depth_test.c +++ b/src/gallium/drivers/softpipe/sp_quad_depth_test.c @@ -860,6 +860,7 @@ choose_depth_test(struct quad_stage *qs, /* look for special cases */ if (!alpha && !depth && + !occlusion && !stencil) { qs->run = depth_noop; } -- 2.7.4