r600g: remove unused variable num_dest_buffers
authorMarek Olšák <maraeo@gmail.com>
Tue, 31 Jan 2012 06:32:31 +0000 (07:32 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 31 Jan 2012 22:28:42 +0000 (23:28 +0100)
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c

index bd46072deacbccabd0bf0be12e89f0665da400ff..89f22153a7e8d44ddf68ca2b832d4c3e6de13061 100644 (file)
@@ -1531,7 +1531,6 @@ static void evergreen_set_framebuffer_state(struct pipe_context *ctx,
                return;
 
        r600_flush_framebuffer(rctx, false);
-       rctx->num_dest_buffers = state->nr_cbufs;
 
        /* unreference old buffer and reference new one */
        rstate->id = R600_PIPE_STATE_FRAMEBUFFER;
@@ -1546,7 +1545,6 @@ static void evergreen_set_framebuffer_state(struct pipe_context *ctx,
        }
        if (state->zsbuf) {
                evergreen_db(rctx, rstate, state);
-               rctx->num_dest_buffers++;
        }
 
        shader_mask = 0;
index a9d21bd9f6781bcebd6189515cc224c92cd65fe1..f11539a9875a240c5b26a5c406ba82515312eecb 100644 (file)
@@ -301,7 +301,6 @@ struct r600_context {
 
        unsigned                backend_mask;
        unsigned                max_db; /* for OQ */
-       unsigned                num_dest_buffers;
        unsigned                flags;
        boolean                 predicate_drawing;
        struct r600_range       ps_resources;
index 7b3d813d6103c1133fe1d81822e4334ffb009611..e6362f935362943bb08c046209873474aed01319 100644 (file)
@@ -1614,7 +1614,6 @@ static void r600_set_framebuffer_state(struct pipe_context *ctx,
                return;
 
        r600_flush_framebuffer(rctx, false);
-       rctx->num_dest_buffers = state->nr_cbufs;
 
        /* unreference old buffer and reference new one */
        rstate->id = R600_PIPE_STATE_FRAMEBUFFER;
@@ -1628,7 +1627,6 @@ static void r600_set_framebuffer_state(struct pipe_context *ctx,
        }
        if (state->zsbuf) {
                r600_db(rctx, rstate, state);
-               rctx->num_dest_buffers++;
        }
 
        shader_mask = 0;