nvfx: Remove unused variables.
authorVinson Lee <vlee@vmware.com>
Mon, 13 Sep 2010 04:48:40 +0000 (21:48 -0700)
committerVinson Lee <vlee@vmware.com>
Mon, 13 Sep 2010 04:48:40 +0000 (21:48 -0700)
src/gallium/drivers/nvfx/nvfx_context.c
src/gallium/drivers/nvfx/nvfx_fragprog.c
src/gallium/drivers/nvfx/nvfx_vertprog.c

index 62d623b..95834d2 100644 (file)
@@ -13,7 +13,6 @@ nvfx_flush(struct pipe_context *pipe, unsigned flags,
        struct nvfx_context *nvfx = nvfx_context(pipe);
        struct nvfx_screen *screen = nvfx->screen;
        struct nouveau_channel *chan = screen->base.channel;
-       struct nouveau_grobj *eng3d = screen->eng3d;
 
        /* XXX: we need to actually be intelligent here */
        if (flags & PIPE_FLUSH_TEXTURE_CACHE) {
index fc9d5b9..4fda857 100644 (file)
@@ -468,7 +468,7 @@ nvfx_fragprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_fpc *fpc,
 {
        const struct nvfx_src none = nvfx_src(nvfx_reg(NVFXSR_NONE, 0));
        struct nvfx_insn insn;
-       struct nvfx_src src[3], tmp, tmp2;
+       struct nvfx_src src[3], tmp;
        struct nvfx_reg dst;
        int mask, sat, unit = 0;
        int ai = -1, ci = -1, ii = -1;
index 6ddfca1..23f045e 100644 (file)
@@ -1407,7 +1407,6 @@ nvfx_vertprog_destroy(struct nvfx_context *nvfx, struct nvfx_vertex_program *vp)
 static void *
 nvfx_vp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso)
 {
-        struct nvfx_context *nvfx = nvfx_context(pipe);
         struct nvfx_pipe_vertex_program *pvp;
 
         pvp = CALLOC(1, sizeof(struct nvfx_pipe_vertex_program));