r600: remove some unused variables to silence warnings
authorGert Wollny <gert.wollny@collabora.com>
Wed, 6 May 2020 16:48:05 +0000 (18:48 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Thu, 7 May 2020 09:00:54 +0000 (11:00 +0200)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4939>

src/gallium/drivers/r600/r600_pipe_common.c
src/gallium/drivers/r600/r600_texture.c

index bafe8241e7a715fac6bbfec9a1657eb4802bfb29..77b70bf3f537b8c1ad77bdf977e625a07946f017 100644 (file)
@@ -812,8 +812,6 @@ static const char* r600_get_name(struct pipe_screen* pscreen)
 static float r600_get_paramf(struct pipe_screen* pscreen,
                             enum pipe_capf param)
 {
-       struct r600_common_screen *rscreen = (struct r600_common_screen *)pscreen;
-
        switch (param) {
        case PIPE_CAPF_MAX_LINE_WIDTH:
        case PIPE_CAPF_MAX_LINE_WIDTH_AA:
index 3ffa7be729176352ce99c19b610663cf200ebd30..6036d34553134a851850994227e86fa933e6295c 100644 (file)
@@ -1614,8 +1614,6 @@ static void r600_clear_texture(struct pipe_context *pipe,
        struct r600_texture *rtex = (struct r600_texture*)tex;
        struct pipe_surface tmpl = {{0}};
        struct pipe_surface *sf;
-       const struct util_format_description *desc =
-               util_format_description(tex->format);
 
        tmpl.format = tex->format;
        tmpl.u.tex.first_layer = box->z;