Mesa (master): r600: remove some unused variables to silence warnings

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 7 09:43:09 UTC 2020


Module: Mesa
Branch: master
Commit: 5469fcea75457542b699404b003bfb051a5fc6b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5469fcea75457542b699404b003bfb051a5fc6b0

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Wed May  6 18:48:05 2020 +0200

r600: remove some unused variables to silence warnings

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Michel Dänzer <mdaenzer at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4939>

---

 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;



More information about the mesa-commit mailing list