r600g: remove unused variables to fix compile warnings
authorMarek Olšák <maraeo@gmail.com>
Mon, 8 Oct 2012 23:11:56 +0000 (01:11 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 8 Oct 2012 23:11:56 +0000 (01:11 +0200)
src/gallium/drivers/r600/evergreen_compute.c
src/gallium/drivers/r600/evergreen_compute_internal.c

index b7c734512e2ef39d8d6ad5a3ebbc7c555a2cc715..fe9e2f98ce0495cfce7b559351badf909eb4ef29 100644 (file)
@@ -479,8 +479,6 @@ static void evergreen_launch_grid(
                uint32_t pc, const void *input)
 {
        struct r600_context *ctx = (struct r600_context *)ctx_;
-       struct r600_pipe_compute *shader = ctx->cs_shader_state.shader;
-       void *p;
 
        COMPUTE_DBG("*** evergreen_launch_grid: pc = %u\n", pc);
 
index 496d099609a7fbe2ba5117d8ac25caecc6157de0..3b1e5812d023ec358cd50a2566fb11fd653dbc54 100644 (file)
@@ -294,8 +294,6 @@ void evergreen_set_rat(
        pipe->ctx->compute_cb_target_mask |= (0xf << (id * 4));
 
        surf = (struct r600_surface*)pipe->ctx->framebuffer.state.cbufs[id];
-
-       struct radeon_surface *rsurf = &((struct r600_texture*)surf->base.texture)->surface;
        evergreen_init_color_surface_rat(rctx, surf);
 }