Mesa (master): softpipe: can' t no-op depth test stage when occlusion query is enabled
Brian Paul
brianp at kemper.freedesktop.org
Tue Nov 9 18:45:05 UTC 2010
Module: Mesa
Branch: master
Commit: 61ea76c8da5511d8d3f1fc3ea409ddbef89e7488
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=61ea76c8da5511d8d3f1fc3ea409ddbef89e7488
Author: Brian Paul <brianp at vmware.com>
Date: Tue Nov 9 11:43:37 2010 -0700
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 files changed, 1 insertions(+), 0 deletions(-)
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;
}
More information about the mesa-commit
mailing list