summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-03-30 17:21:47 +0200
committerMarek Olšák <[email protected]>2017-03-30 17:22:25 +0200
commit83d3e6fbff61f817f35820bfd4066a92ff104115 (patch)
tree731a7dd8afa063dfd9f1287e646a415decea50c7
parentbb2e05885d476702f1fade95ec32eb5eb6079374 (diff)
radeonsi: fix an unused-variable warning in a release build
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 75e8c77cfd2..0daa5ea53e2 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -1438,9 +1438,7 @@ static struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen
/* Validate that addrlib arrived at the same surface parameters. */
if (rscreen->chip_class >= GFX9) {
- struct gfx9_surf_layout *gfx9 = &surface.u.gfx9;
-
- assert(metadata.u.gfx9.swizzle_mode == gfx9->surf.swizzle_mode);
+ assert(metadata.u.gfx9.swizzle_mode == surface.u.gfx9.surf.swizzle_mode);
}
return &rtex->resource.b.b;