radeonsi: remove unused local variables
authorMarek Olšák <maraeo@gmail.com>
Thu, 11 Oct 2012 19:31:36 +0000 (21:31 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 11 Oct 2012 19:31:36 +0000 (21:31 +0200)
src/gallium/drivers/radeonsi/r600_blit.c
src/gallium/drivers/radeonsi/r600_buffer.c
src/gallium/drivers/radeonsi/radeonsi_pipe.c
src/gallium/drivers/radeonsi/radeonsi_shader.c

index eecdb60f10daaf7b00d1975593a669c81ea647cb..cea7e12801850587200dcff20ed69cabe7ad01ae 100644 (file)
@@ -272,7 +272,6 @@ static void r600_compressed_to_blittable(struct pipe_resource *tex,
                                   struct texture_orig_info *orig)
 {
        struct r600_resource_texture *rtex = (struct r600_resource_texture*)tex;
-       struct r600_screen *rscreen = (struct r600_screen *)tex->screen;
        unsigned pixsize = util_format_get_blocksize(rtex->real_format);
        int new_format;
        int new_height, new_width;
@@ -307,7 +306,6 @@ static void r600_reset_blittable_to_compressed(struct pipe_resource *tex,
                                               struct texture_orig_info *orig)
 {
        struct r600_resource_texture *rtex = (struct r600_resource_texture*)tex;
-       struct r600_screen *rscreen = (struct r600_screen *)tex->screen;
 
        tex->format = orig->format;
        tex->width0 = orig->width0;
index 7fae048d1f57f516096cc6de9a89e31c9b31537d..2e65d28f2934f7503c88222fc56e43faf5619326 100644 (file)
@@ -39,7 +39,6 @@
 static void r600_buffer_destroy(struct pipe_screen *screen,
                                struct pipe_resource *buf)
 {
-       struct r600_screen *rscreen = (struct r600_screen*)screen;
        struct si_resource *rbuffer = si_resource(buf);
 
        pb_reference(&rbuffer->buf, NULL);
index 03a99eb3321044f6517964951953161144e81ec6..dcdbe2ae1d80e9139f6c1015a3ce38145682185c 100644 (file)
@@ -289,7 +289,6 @@ static const char* r600_get_name(struct pipe_screen* pscreen)
 static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
 {
        struct r600_screen *rscreen = (struct r600_screen *)pscreen;
-       enum radeon_family family = rscreen->family;
 
        switch (param) {
        /* Supported features (boolean caps). */
@@ -394,9 +393,6 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
 static float r600_get_paramf(struct pipe_screen* pscreen,
                             enum pipe_capf param)
 {
-       struct r600_screen *rscreen = (struct r600_screen *)pscreen;
-       enum radeon_family family = rscreen->family;
-
        switch (param) {
        case PIPE_CAPF_MAX_LINE_WIDTH:
        case PIPE_CAPF_MAX_LINE_WIDTH_AA:
@@ -418,7 +414,6 @@ static float r600_get_paramf(struct pipe_screen* pscreen,
 
 static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enum pipe_shader_cap param)
 {
-       struct r600_screen *rscreen = (struct r600_screen *)pscreen;
        switch(shader)
        {
        case PIPE_SHADER_FRAGMENT:
index f65e69210cff09519b86775345d1c9d73b55bc32..8a55e0dfab0358f8bef7ae72914f243b22b37a33 100644 (file)
@@ -191,7 +191,6 @@ static void declare_input_vs(
        LLVMValueRef input;
        struct lp_build_context * uint = &si_shader_ctx->radeon_bld.soa.bld_base.uint_bld;
        struct lp_build_context * base = &si_shader_ctx->radeon_bld.soa.bld_base.base;
-       struct r600_context *rctx = si_shader_ctx->rctx;
        //struct pipe_vertex_element *velem = &rctx->vertex_elements->elements[input_index];
        unsigned chan;