gallium/radeon: rename fmask::pitch -> pitch_in_pixels
authorMarek Olšák <marek.olsak@amd.com>
Sat, 21 Nov 2015 22:46:01 +0000 (23:46 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 3 Dec 2015 22:41:23 +0000 (23:41 +0100)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeonsi/si_state.c

index 9f2d50c87112d49327fae61b720aa908e3fb58b8..b6009d2ca75a1ca2bd79805161a6709c6d774c3f 100644 (file)
@@ -172,7 +172,7 @@ struct r600_fmask_info {
        unsigned offset;
        unsigned size;
        unsigned alignment;
-       unsigned pitch;
+       unsigned pitch_in_pixels;
        unsigned bank_height;
        unsigned slice_tile_max;
        unsigned tile_mode_index;
index c787cfb78efae594ac2fd01d4b9a7560a94fd7e2..37cac91f76fd8081c926a4cbd084665045864860 100644 (file)
@@ -336,7 +336,7 @@ void r600_texture_get_fmask_info(struct r600_common_screen *rscreen,
                out->slice_tile_max -= 1;
 
        out->tile_mode_index = fmask.tiling_index[0];
-       out->pitch = fmask.level[0].nblk_x;
+       out->pitch_in_pixels = fmask.level[0].nblk_x;
        out->bank_height = fmask.bankh;
        out->alignment = MAX2(256, fmask.bo_alignment);
        out->size = fmask.bo_size;
@@ -608,10 +608,10 @@ r600_print_texture_info(struct r600_texture *rtex, FILE *f)
                (rtex->surface.flags & RADEON_SURF_SCANOUT) != 0);
 
        if (rtex->fmask.size)
-               fprintf(f, "  FMask: offset=%u, size=%u, alignment=%u, pitch=%u, "
+               fprintf(f, "  FMask: offset=%u, size=%u, alignment=%u, pitch_in_pixels=%u, "
                        "bankh=%u, slice_tile_max=%u, tile_mode_index=%u\n",
                        rtex->fmask.offset, rtex->fmask.size, rtex->fmask.alignment,
-                       rtex->fmask.pitch, rtex->fmask.bank_height,
+                       rtex->fmask.pitch_in_pixels, rtex->fmask.bank_height,
                        rtex->fmask.slice_tile_max, rtex->fmask.tile_mode_index);
 
        if (rtex->cmask.size)
index 209b940aa116b592718a8716e80c9d7edf2aba97..5b71389c6aad0d5df42a524e3029b6d4e76fdfa4 100644 (file)
@@ -1912,7 +1912,7 @@ static void si_initialize_color_surface(struct si_context *sctx,
                                color_attrib |= S_028C74_FMASK_BANK_HEIGHT(fmask_bankh);
                        }
                        if (sctx->b.chip_class >= CIK) {
-                               color_pitch |= S_028C64_FMASK_TILE_MAX(rtex->fmask.pitch / 8 - 1);
+                               color_pitch |= S_028C64_FMASK_TILE_MAX(rtex->fmask.pitch_in_pixels / 8 - 1);
                        }
                }
        }
@@ -2701,7 +2701,7 @@ si_create_sampler_view_custom(struct pipe_context *ctx,
                                       S_008F1C_TYPE(si_tex_dim(texture->target,
                                                                state->target, 0));
                view->fmask_state[4] = S_008F20_DEPTH(depth - 1) |
-                                      S_008F20_PITCH(tmp->fmask.pitch - 1);
+                                      S_008F20_PITCH(tmp->fmask.pitch_in_pixels - 1);
                view->fmask_state[5] = S_008F24_BASE_ARRAY(state->u.tex.first_layer) |
                                       S_008F24_LAST_ARRAY(last_layer);
                view->fmask_state[6] = 0;