nvfx: Remove unused variables.
authorVinson Lee <vlee@vmware.com>
Sun, 18 Apr 2010 05:23:25 +0000 (22:23 -0700)
committerVinson Lee <vlee@vmware.com>
Sun, 18 Apr 2010 05:23:25 +0000 (22:23 -0700)
src/gallium/drivers/nvfx/nv04_surface_2d.c
src/gallium/drivers/nvfx/nvfx_vbo.c

index 22cfa0ecefa0e907d154f80b969a41cdf82ae88a..a1507bbb3cad1da53a0d3929952b9b251539d7fb 100644 (file)
@@ -285,8 +285,6 @@ nv04_surface_copy(struct nv04_surface_2d *ctx, struct pipe_surface *dst,
                  int dx, int dy, struct pipe_surface *src, int sx, int sy,
                  int w, int h)
 {
-       unsigned src_pitch = ((struct nv04_surface *)src)->pitch;
-       unsigned dst_pitch = ((struct nv04_surface *)dst)->pitch;
        int src_linear = src->texture->flags & NVFX_RESOURCE_FLAG_LINEAR;
        int dst_linear = dst->texture->flags & NVFX_RESOURCE_FLAG_LINEAR;
 
index bc87fe275c0c20b4c9e32b6358efc0b2fc2ac2cf..5ffbdfcb2a65f3a8c2b85a74bcd861c8ca058a30 100644 (file)
@@ -81,7 +81,6 @@ static boolean
 nvfx_vbo_set_idxbuf(struct nvfx_context *nvfx, struct pipe_resource *ib,
                    unsigned ib_size)
 {
-       struct pipe_screen *pscreen = &nvfx->screen->base.base;
        unsigned type;
 
        if (!ib) {