diff options
author | Marek Olšák <[email protected]> | 2010-08-12 05:06:21 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-08-12 06:21:24 +0200 |
commit | de4784e36505316c2a5ab34cc5b371d17f38d3c5 (patch) | |
tree | 339154670168a58705f700f292112cd03de2f764 /src/gallium/drivers/r300/r300_blit.c | |
parent | e1bb9ee7a6b7dea0e0388ffb375447ad40f38499 (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.c | 4 |
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 ff52286b5cd..67e82884405 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; |