From 371ca689ec5d1d7f301f4a3176c4e0df1c44ec15 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 19 Jun 2010 04:44:34 +0200 Subject: r300g: improve the ZTOP condition The real difference here is that ZTOP is now enabled if all stencil ops are set to KEEP. This improves performance. --- src/gallium/drivers/r300/r300_context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/r300/r300_context.h') diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index 0d7ff2e061..8e9742fe82 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -77,6 +77,8 @@ struct r300_clip_state { }; struct r300_dsa_state { + struct pipe_depth_stencil_alpha_state dsa; + /* This is actually a command buffer with named dwords. */ uint32_t cb_begin; uint32_t alpha_function; /* R300_FG_ALPHA_FUNC: 0x4bd4 */ -- cgit v1.2.3