From: Brian Paul Date: Tue, 9 Nov 2010 18:43:37 +0000 (-0700) Subject: softpipe: can't no-op depth test stage when occlusion query is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61ea76c8da5511d8d3f1fc3ea409ddbef89e7488;p=mesa.git softpipe: can't no-op depth test stage when occlusion query is enabled Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31479 --- diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c b/src/gallium/drivers/softpipe/sp_quad_depth_test.c index c8f5f89568a..89b2a91fc1f 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; }