summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-08 06:16:09 +0200
committerMarek Olšák <[email protected]>2010-07-08 18:02:30 +0200
commitf9e8cdc145fc0ba1f6c47e20860add6528387c7c (patch)
tree246e36ca7607fa5901d22bccf6db585a8b675de4 /src/gallium/drivers/r300/r300_context.c
parent3751e6e1fc385739022d0942b46e175632ad0d4b (diff)
r300g: minor fixups
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 2fe2e0a96d7..3ca3436cdd6 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -327,7 +327,7 @@ static void r300_init_states(struct pipe_context *pipe)
/* Initialize the hyperz state. */
{
- BEGIN_CB(&hyperz->cb_begin, 6);
+ BEGIN_CB(&hyperz->cb_begin, r300->hyperz_state.size);
OUT_CB_REG(R300_ZB_BW_CNTL, 0);
OUT_CB_REG(R300_ZB_DEPTHCLEARVALUE, 0);
OUT_CB_REG(R300_SC_HYPERZ, 0x1C);