From 5469fcea75457542b699404b003bfb051a5fc6b0 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 6 May 2020 18:48:05 +0200 Subject: [PATCH] r600: remove some unused variables to silence warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Gert Wollny Reviewed-by: Michel Dänzer Part-of: --- src/gallium/drivers/r600/r600_pipe_common.c | 2 -- src/gallium/drivers/r600/r600_texture.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c index bafe8241e7a..77b70bf3f53 100644 --- a/src/gallium/drivers/r600/r600_pipe_common.c +++ b/src/gallium/drivers/r600/r600_pipe_common.c @@ -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: diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 3ffa7be7291..6036d345531 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -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; -- 2.30.2