diff options
author | Michel Dänzer | 2013-11-26 03:16:03 -0600 |
---|---|---|
committer | Michel Dänzer | 2013-11-26 03:16:03 -0600 |
commit | c8a437f4c76527b3c8385699ccee07f35fe3f166 (patch) | |
tree | d0f98ee0898ef28e8029bc103935874cf3ade226 /radeon/radeon_surface.c | |
parent | 7ddc98f92f92560e2b52287ae8cf816ca4a057de (diff) | |
download | external-libgbm-c8a437f4c76527b3c8385699ccee07f35fe3f166.tar.gz external-libgbm-c8a437f4c76527b3c8385699ccee07f35fe3f166.tar.xz external-libgbm-c8a437f4c76527b3c8385699ccee07f35fe3f166.zip |
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>
Diffstat (limited to 'radeon/radeon_surface.c')
-rw-r--r-- | radeon/radeon_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index b528a486..dcbbfdc5 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c | |||
@@ -1667,7 +1667,7 @@ static int si_surface_init_2d(struct radeon_surface_manager *surf_man, | |||
1667 | return si_surface_init_1d(surf_man, surf, level, bpe, tile_mode, offset, i); | 1667 | return si_surface_init_1d(surf_man, surf, level, bpe, tile_mode, offset, i); |
1668 | } | 1668 | } |
1669 | /* level0 and first mipmap need to have alignment */ | 1669 | /* level0 and first mipmap need to have alignment */ |
1670 | aligned_offset = surf->bo_size; | 1670 | aligned_offset = offset = surf->bo_size; |
1671 | if ((i == 0)) { | 1671 | if ((i == 0)) { |
1672 | aligned_offset = ALIGN(aligned_offset, surf->bo_alignment); | 1672 | aligned_offset = ALIGN(aligned_offset, surf->bo_alignment); |
1673 | } | 1673 | } |