From: Gert Wollny Date: Wed, 6 May 2020 16:48:05 +0000 (+0200) Subject: r600: remove some unused variables to silence warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5469fcea75457542b699404b003bfb051a5fc6b0;p=mesa.git r600: remove some unused variables to silence warnings Signed-off-by: Gert Wollny Reviewed-by: Michel Dänzer Part-of: --- 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;