diff options
author | Marek Olšák <[email protected]> | 2010-06-19 04:44:34 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-06-19 05:14:31 +0200 |
commit | 371ca689ec5d1d7f301f4a3176c4e0df1c44ec15 (patch) | |
tree | faa95d8814cea070dc4080a07ee026cc264de4e2 /src/gallium/drivers/r300/r300_state.c | |
parent | 8ea45a2c0ec5e53210761753dc9122c2771ba57b (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_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index e1149d73868..9799f0c5223 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -465,6 +465,8 @@ static void* struct r300_dsa_state* dsa = CALLOC_STRUCT(r300_dsa_state); CB_LOCALS; + dsa->dsa = *state; + /* Depth test setup. */ if (state->depth.enabled) { dsa->z_buffer_control |= R300_Z_ENABLE; |