radeon/r200/r300: attempt to move lock to common code
[mesa.git] / src / mesa / drivers / dri / r300 / r300_cmdbuf.c
index bd9d25d2f0dbf3b9eb4c06c684162548af46665c..32d0dcf5472dd0d53d4db4c082688d3bf4f5287a 100644 (file)
@@ -397,7 +397,7 @@ static void emit_zb_offset(GLcontext *ctx, struct radeon_state_atom * atom)
        struct radeon_renderbuffer *rrb;
        uint32_t zbpitch;
 
-       rrb = r300->radeon.state.depth_buffer;
+       rrb = r300->radeon.state.depth.rrb;
        if (!rrb)
                return;