summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-06-03 17:41:57 -0700
committerVinson Lee <[email protected]>2010-06-03 17:41:57 -0700
commit42aad574f2536d8bf0dc38a2e02d9ddd0630d895 (patch)
tree2582f7e269dbbc23b7b2c18cb5d8688f569f25f8 /src
parent1687ef2be68ec6d35d47da0ab90412c789aefab7 (diff)
r600g: Move declaration before code.
Fixes SCons build.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index c8dd1ae62ea..929814e706e 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -370,11 +370,12 @@ static void *r600_create_dsa_state(struct pipe_context *ctx,
{
struct r600_screen *rscreen = (struct r600_screen*)ctx->screen;
struct radeon_state *rstate;
+ unsigned db_depth_control;
rstate = radeon_state(rscreen->rw, R600_DSA_TYPE, R600_DSA);
if (rstate == NULL)
return NULL;
- unsigned db_depth_control = 0x00700700 | S_028800_Z_ENABLE(state->depth.enabled) | S_028800_Z_WRITE_ENABLE(state->depth.writemask) | S_028800_ZFUNC(state->depth.func);
+ db_depth_control = 0x00700700 | S_028800_Z_ENABLE(state->depth.enabled) | S_028800_Z_WRITE_ENABLE(state->depth.writemask) | S_028800_ZFUNC(state->depth.func);
rstate->states[R600_DSA__DB_STENCIL_CLEAR] = 0x00000000;
rstate->states[R600_DSA__DB_DEPTH_CLEAR] = 0x3F800000;