summaryrefslogtreecommitdiff
path: root/radeon
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2013-11-26 18:16:03 +0900
committerMichel Dänzer <michel@daenzer.net>2013-11-26 18:16:03 +0900
commitc8a437f4c76527b3c8385699ccee07f35fe3f166 (patch)
treed0f98ee0898ef28e8029bc103935874cf3ade226 /radeon
parent7ddc98f92f92560e2b52287ae8cf816ca4a057de (diff)
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')
-rw-r--r--radeon/radeon_surface.c2
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,
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);
}