OSDN Git Service

nv50: remove unused variables
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 1 Sep 2014 22:47:01 +0000 (18:47 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 1 Sep 2014 22:47:42 +0000 (18:47 -0400)
Recent code changes have caused these to no longer be used. Remove them.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_state_validate.c
src/gallium/drivers/nouveau/nv50/nv84_video.c

index 4f2758a..6916bea 100644 (file)
@@ -93,7 +93,6 @@ nv50_validate_fb(struct nv50_context *nv50)
    if (fb->zsbuf) {
       struct nv50_miptree *mt = nv50_miptree(fb->zsbuf->texture);
       struct nv50_surface *sf = nv50_surface(fb->zsbuf);
-      struct nouveau_bo *bo = mt->base.bo;
       int unk = mt->base.base.target == PIPE_TEXTURE_3D || sf->depth == 1;
 
       BEGIN_NV04(push, NV50_3D(ZETA_ADDRESS_HIGH), 5);
index b42de20..395bd7a 100644 (file)
@@ -609,7 +609,6 @@ nv84_video_buffer_create(struct pipe_context *pipe,
    struct pipe_sampler_view sv_templ;
    struct pipe_surface surf_templ;
    struct nv50_miptree *mt0, *mt1;
-   struct nouveau_bo *empty = NULL;
    struct nouveau_screen *screen = &((struct nv50_context *)pipe)->screen->base;
    union nouveau_bo_config cfg;
    unsigned bo_size;