Lines Matching defs:pitch

676       /* Set the base level pitch. This is needed for calculation
697 surf_level->nblk_x = AddrSurfInfoOut->pitch;
820 AddrHtileIn->pitch = AddrSurfInfoOut->pitch;
835 surf->meta_pitch = AddrHtileOut->pitch;
873 * We need to ensure at least 32 pixels pitch alignment, but this is
1138 /* On GFX7-GFX8, the DB uses the same pitch and tile mode (except tilesplit)
1280 /* DB uses the depth pitch for both stencil and depth. */
1314 fin.pitch = AddrSurfInfoOut.pitch;
1331 surf->u.legacy.color.fmask.slice_tile_max = (fout.pitch * fout.height) / 64;
1337 surf->u.legacy.color.fmask.pitch_in_pixels = fout.pitch;
1734 surf->u.gfx9.prt_level_pitch[i] = mip_info[i].pitch;
1762 surf->u.gfx9.surf_pitch = out.pitch;
1767 if (!compressed && surf->blk_w > 1 && out.pitch == out.pixelPitch &&
1788 /* Adjust pitch like we did for surf_pitch */
1789 surf->u.gfx9.pitch[i] = align(mip_info[i].pitch / surf->blk_w, alignment);
1793 surf->u.gfx9.base_mip_width = mip_info[0].pitch;
1831 surf->meta_pitch = hout.pitch;
1931 surf->u.gfx9.color.dcc_pitch_max = dout.pitch - 1;
2014 surf->u.gfx9.color.display_dcc_pitch_max = dout.pitch - 1;
2047 surf->u.gfx9.color.fmask_epitch = fout.pitch - 1;
2122 surf->cmask_pitch = cout.pitch;
2890 unsigned num_mipmap_levels, uint64_t offset, unsigned pitch)
2903 if (pitch) {
2904 if (surf->u.gfx9.surf_pitch != pitch && require_equal_pitch)
2907 if ((ac_surface_get_gfx9_pitch_align(surf) - 1) & pitch)
2910 if (pitch != surf->u.gfx9.surf_pitch) {
2913 surf->u.gfx9.surf_pitch = pitch;
2914 surf->u.gfx9.epitch = pitch - 1;
2915 surf->u.gfx9.surf_slice_size = (uint64_t)pitch * surf->u.gfx9.surf_height * surf->bpe;
2923 if (pitch) {
2924 if (surf->u.legacy.level[0].nblk_x != pitch && require_equal_pitch)
2927 surf->u.legacy.level[0].nblk_x = pitch;
2929 ((uint64_t)pitch * surf->u.legacy.level[0].nblk_y * surf->bpe) / 4;
2997 return (surf->is_linear ? surf->u.gfx9.pitch[level] : surf->u.gfx9.surf_pitch) * surf->bpe;
3033 "alignment=%u, swmode=%u, epitch=%u, pitch=%u, blk_w=%u, "