r600g: the vs/ps const arrays weren't actually being used.
authorDave Airlie <airlied@redhat.com>
Wed, 13 Oct 2010 05:56:12 +0000 (15:56 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 13 Oct 2010 05:56:12 +0000 (15:56 +1000)
completely removed them.

src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h

index 69bfb2a1a4e3d1329a049928a79b2722b6362274..8eb979932361dea45e6c862aa2f2a222c15338bc 100644 (file)
@@ -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);
index 6ce1f96952271e0cdc5e0357b8ea6a02a3505a7f..873178676965051b54072848745ee8a9db2e1696 100644 (file)
@@ -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;