summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-08-12 05:06:21 +0200
committerMarek Olšák <maraeo@gmail.com>2010-08-12 06:21:24 +0200
commitde4784e36505316c2a5ab34cc5b371d17f38d3c5 (patch)
tree339154670168a58705f700f292112cd03de2f764 /src/gallium/drivers/r300/r300_blit.c
parente1bb9ee7a6b7dea0e0388ffb375447ad40f38499 (diff)
u_blitter: unify clear_depth_stencil and flush_depth_stencil
No need to enable depth test for clear.
Diffstat (limited to 'src/gallium/drivers/r300/r300_blit.c')
-rw-r--r--src/gallium/drivers/r300/r300_blit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index ff52286b5c..67e8288440 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -279,7 +279,9 @@ void r300_flush_depth_stencil(struct pipe_context *pipe,
PIPE_BIND_DEPTH_STENCIL);
r300->z_decomp_rd = TRUE;
r300_blitter_begin(r300, R300_CLEAR_SURFACE);
- util_blitter_flush_depth_stencil(r300->blitter, dstsurf);
+ util_blitter_clear_depth_stencil(r300->blitter, dstsurf,
+ PIPE_CLEAR_DEPTH, 0, 0,
+ 0, 0, dstsurf->width, dstsurf->height);
r300_blitter_end(r300);
r300->z_decomp_rd = FALSE;