radeonsi: fix an unused-variable warning in a release build
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 15:21:47 +0000 (17:21 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 15:22:25 +0000 (17:22 +0200)
src/gallium/drivers/radeon/r600_texture.c

index 75e8c77cfd25dc6201ab7a9eb851a4c8984a91d0..0daa5ea53e2b4f7abf3c73117af7757ea0d50b54 100644 (file)
@@ -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;