From: Dave Airlie <[email protected]>

This helps pass one of the texture integer tests.

Signed-off-by: Dave Airlie <[email protected]>
---
 src/gallium/drivers/softpipe/sp_quad_depth_test.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c 
b/src/gallium/drivers/softpipe/sp_quad_depth_test.c
index 529a5ad..e0c1fe4 100644
--- a/src/gallium/drivers/softpipe/sp_quad_depth_test.c
+++ b/src/gallium/drivers/softpipe/sp_quad_depth_test.c
@@ -776,7 +776,9 @@ depth_test_quads_fallback(struct quad_stage *qs,
    data.use_shader_stencil_refs = FALSE;
 
    if (qs->softpipe->depth_stencil->alpha.enabled) {
-      nr = alpha_test_quads(qs, quads, nr);
+      if (!(qs->softpipe->framebuffer.nr_cbufs &&
+            
util_format_is_pure_integer(qs->softpipe->framebuffer.cbufs[0]->format)))
+        nr = alpha_test_quads(qs, quads, nr);
    }
 
    if (qs->softpipe->framebuffer.zsbuf &&
-- 
1.7.7.4

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to