From: Dave Airlie Date: Wed, 13 Oct 2010 05:56:12 +0000 (+1000) Subject: r600g: the vs/ps const arrays weren't actually being used. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=560427667006f01ad9146fa07185924d4f3a08d6;p=mesa.git r600g: the vs/ps const arrays weren't actually being used. completely removed them. --- diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 69bfb2a1a4e..8eb97993236 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -87,8 +87,6 @@ static void r600_destroy_context(struct pipe_context *context) FREE(rctx->ps_resource); FREE(rctx->vs_resource); - FREE(rctx->vs_const); - FREE(rctx->ps_const); FREE(rctx); } @@ -175,18 +173,6 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void return NULL; } - rctx->vs_const = CALLOC(R600_CONSTANT_ARRAY_SIZE, sizeof(struct r600_pipe_state)); - if (!rctx->vs_const) { - FREE(rctx); - return NULL; - } - - rctx->ps_const = CALLOC(R600_CONSTANT_ARRAY_SIZE, sizeof(struct r600_pipe_state)); - if (!rctx->vs_const) { - FREE(rctx); - return NULL; - } - rctx->vs_resource = CALLOC(R600_RESOURCE_ARRAY_SIZE, sizeof(struct r600_pipe_state)); if (!rctx->vs_resource) { FREE(rctx); diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 6ce1f969522..87317867696 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -125,8 +125,6 @@ struct r600_pipe_context { struct pipe_clip_state clip; unsigned vs_nconst; unsigned ps_nconst; - struct r600_pipe_state *vs_const; - struct r600_pipe_state *ps_const; struct r600_pipe_state *vs_resource; struct r600_pipe_state *ps_resource; struct r600_pipe_state config;