mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
r600g: Move declaration before code.
Fixes SCons build.
This commit is contained in:
parent
1687ef2be6
commit
42aad574f2
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue