gallium/radeon: print tiling index when printing texture info
authorMarek Olšák <marek.olsak@amd.com>
Mon, 24 Oct 2016 15:57:19 +0000 (17:57 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Oct 2016 11:02:58 +0000 (13:02 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index ca82a7470873eea6fa18353982451b6f21c729c6..2f2c17cd05e6d1020ea388ff04c39dde3b40a5c5 100644 (file)
@@ -956,7 +956,7 @@ void r600_print_texture_info(struct r600_texture *rtex, FILE *f)
        for (i = 0; i <= rtex->resource.b.b.last_level; i++)
                fprintf(f, "  Level[%i]: offset=%"PRIu64", slice_size=%"PRIu64", "
                        "npix_x=%u, npix_y=%u, npix_z=%u, nblk_x=%u, nblk_y=%u, "
-                       "pitch_bytes=%u, mode=%u\n",
+                       "pitch_bytes=%u, mode=%u, tiling_index = %u\n",
                        i, rtex->surface.level[i].offset,
                        rtex->surface.level[i].slice_size,
                        u_minify(rtex->resource.b.b.width0, i),
@@ -965,7 +965,8 @@ void r600_print_texture_info(struct r600_texture *rtex, FILE *f)
                        rtex->surface.level[i].nblk_x,
                        rtex->surface.level[i].nblk_y,
                        rtex->surface.level[i].pitch_bytes,
-                       rtex->surface.level[i].mode);
+                       rtex->surface.level[i].mode,
+                       rtex->surface.tiling_index[i]);
 
        if (rtex->surface.flags & RADEON_SURF_SBUFFER) {
                fprintf(f, "  StencilLayout: tilesplit=%u\n",
@@ -974,7 +975,7 @@ void r600_print_texture_info(struct r600_texture *rtex, FILE *f)
                        fprintf(f, "  StencilLevel[%i]: offset=%"PRIu64", "
                                "slice_size=%"PRIu64", npix_x=%u, "
                                "npix_y=%u, npix_z=%u, nblk_x=%u, nblk_y=%u, "
-                               "pitch_bytes=%u, mode=%u\n",
+                               "pitch_bytes=%u, mode=%u, tiling_index = %u\n",
                                i, rtex->surface.stencil_level[i].offset,
                                rtex->surface.stencil_level[i].slice_size,
                                u_minify(rtex->resource.b.b.width0, i),
@@ -983,7 +984,8 @@ void r600_print_texture_info(struct r600_texture *rtex, FILE *f)
                                rtex->surface.stencil_level[i].nblk_x,
                                rtex->surface.stencil_level[i].nblk_y,
                                rtex->surface.stencil_level[i].pitch_bytes,
-                               rtex->surface.stencil_level[i].mode);
+                               rtex->surface.stencil_level[i].mode,
+                               rtex->surface.stencil_tiling_index[i]);
                }
        }
 }