gallium/radeon: print StencilLayout only once
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 27 Jun 2016 14:59:55 +0000 (16:59 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Jul 2016 08:42:48 +0000 (10:42 +0200)
It is the same for all levels.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 7651e879dad92a0eaaad918536ffb47a6ac4be2f..0a25dbef99163d8968d969e4acd14e865c216cd0 100644 (file)
@@ -961,9 +961,9 @@ void r600_print_texture_info(struct r600_texture *rtex, FILE *f)
                        rtex->surface.level[i].mode);
 
        if (rtex->surface.flags & RADEON_SURF_SBUFFER) {
+               fprintf(f, "  StencilLayout: tilesplit=%u\n",
+                       rtex->surface.stencil_tile_split);
                for (i = 0; i <= rtex->surface.last_level; i++) {
-                       fprintf(f, "  StencilLayout: tilesplit=%u\n",
-                               rtex->surface.stencil_tile_split);
                        fprintf(f, "  StencilLevel[%i]: offset=%"PRIu64", "
                                "slice_size=%"PRIu64", npix_x=%u, "
                                "npix_y=%u, npix_z=%u, nblk_x=%u, nblk_y=%u, "