From 38bf2763482b4f1b6d95cd51aecec75601d8b90f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 31 Jan 2012 07:32:31 +0100 Subject: [PATCH] r600g: remove unused variable num_dest_buffers --- src/gallium/drivers/r600/evergreen_state.c | 2 -- src/gallium/drivers/r600/r600_pipe.h | 1 - src/gallium/drivers/r600/r600_state.c | 2 -- 3 files changed, 5 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index bd46072deac..89f22153a7e 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -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; diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index a9d21bd9f67..f11539a9875 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -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; diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 7b3d813d610..e6362f93536 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -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; -- 2.30.2