radeon: Update unaligned offset for 2D->1D tiling transition on SI

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71983

Tested-by: Arek Ruśniak <arek.rusi@gmail.com>
main
Michel Dänzer 2013-11-26 18:16:03 +09:00 committed by Michel Dänzer
parent 7ddc98f92f
commit c8a437f4c7
1 changed files with 1 additions and 1 deletions

View File

@ -1667,7 +1667,7 @@ static int si_surface_init_2d(struct radeon_surface_manager *surf_man,
return si_surface_init_1d(surf_man, surf, level, bpe, tile_mode, offset, i);
}
/* level0 and first mipmap need to have alignment */
aligned_offset = surf->bo_size;
aligned_offset = offset = surf->bo_size;
if ((i == 0)) {
aligned_offset = ALIGN(aligned_offset, surf->bo_alignment);
}