summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_depth_test.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-07-30 17:16:38 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-07-30 17:16:38 -0600
commitf884f6886eb043ea2e2e2b5471afbc58639f3a81 (patch)
tree216399d87572b7f30696835c434904dbe5fd0929 /src/mesa/pipe/softpipe/sp_quad_depth_test.c
parent7baa0865b114776cc1672c5e97e63c282e25285f (diff)
parent4576d754c98e3fb5d413e294d48fb70a893defcf (diff)
Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_depth_test.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_depth_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
index d47c4c42b8..a26bd51d84 100644
--- a/src/mesa/pipe/softpipe/sp_quad_depth_test.c
+++ b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
@@ -59,6 +59,8 @@ sp_depth_test_quad(struct quad_stage *qs, struct quad_header *quad)
*/
if (sps->surface.format == PIPE_FORMAT_U_Z16)
scale = 65535.0;
+ else if (sps->surface.format == PIPE_FORMAT_Z24_S8)
+ scale = (float) ((1 << 24) - 1);
else
assert(0); /* XXX fix this someday */