summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_context.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-06-19 04:44:34 +0200
committerMarek Olšák <maraeo@gmail.com>2010-06-19 05:14:31 +0200
commit371ca689ec5d1d7f301f4a3176c4e0df1c44ec15 (patch)
treefaa95d8814cea070dc4080a07ee026cc264de4e2 /src/gallium/drivers/r300/r300_context.h
parent8ea45a2c0ec5e53210761753dc9122c2771ba57b (diff)
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.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r--src/gallium/drivers/r300/r300_context.h2
1 files changed, 2 insertions, 0 deletions
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 */