diff options
author | Christoph Bill <egore@gmx.de> | 2007-03-01 20:40:25 +0100 |
---|---|---|
committer | Jerome Glisse <glisse@freedesktop.org> | 2007-03-01 20:40:25 +0100 |
commit | ad3f2107ed698e794871e0a2bd996260b263b46a (patch) | |
tree | 8d98b4fb7d6ad246a862612b7db76ef5f2d76da8 /src/mesa/drivers/dri/r300/r300_state.c | |
parent | 5cb01764f647be7ca3cb5e891af9fe012914a93d (diff) | |
download | external_mesa3d-ad3f2107ed698e794871e0a2bd996260b263b46a.zip external_mesa3d-ad3f2107ed698e794871e0a2bd996260b263b46a.tar.gz external_mesa3d-ad3f2107ed698e794871e0a2bd996260b263b46a.tar.bz2 |
Add early register descritpion.
This need more work on case where we can disable
or enable early (stencil, alpha might need it to
be disable).
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_state.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_state.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index b30ece1..0e33e51 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -328,24 +328,24 @@ static void r300UpdateCulling(GLcontext* ctx) static void update_early_z(GLcontext *ctx) { - /* updates register 0x4f14 - if depth test is not enabled it should be 0x00000000 - if depth is enabled and alpha not it should be 0x00000001 - if depth and alpha is enabled it should be 0x00000000 + /* updates register R300_RB3D_EARLY_Z (0x4F14) + if depth test is not enabled it should be R300_EARLY_Z_DISABLE + if depth is enabled and alpha not it should be R300_EARLY_Z_ENABLE + if depth and alpha is enabled it should be R300_EARLY_Z_DISABLE */ r300ContextPtr r300 = R300_CONTEXT(ctx); R300_STATECHANGE(r300, unk4F10); if (ctx->Color.AlphaEnabled && ctx->Color.AlphaFunc != GL_ALWAYS) /* disable early Z */ - r300->hw.unk4F10.cmd[2] = 0x00000000; + r300->hw.unk4F10.cmd[2] = R300_EARLY_Z_DISABLE; else { if (ctx->Depth.Test && ctx->Depth.Func != GL_NEVER) /* enable early Z */ - r300->hw.unk4F10.cmd[2] = 0x00000001; + r300->hw.unk4F10.cmd[2] = R300_EARLY_Z_ENABLE; else /* disable early Z */ - r300->hw.unk4F10.cmd[2] = 0x00000000; + r300->hw.unk4F10.cmd[2] = R300_EARLY_Z_DISABLE; } } |