aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--radeon/radeon_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index 0723425e..930017ef 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -595,7 +595,7 @@ static void eg_surf_minify(struct radeon_surface *surf,
595 mtile_ps = (mtile_pr * surflevel->nblk_y) / mtileh; 595 mtile_ps = (mtile_pr * surflevel->nblk_y) / mtileh;
596 596
597 surflevel->offset = offset; 597 surflevel->offset = offset;
598 surflevel->pitch_bytes = surflevel->nblk_x * bpe * slice_pt; 598 surflevel->pitch_bytes = surflevel->nblk_x * bpe * surf->nsamples;
599 surflevel->slice_size = mtile_ps * mtileb * slice_pt; 599 surflevel->slice_size = mtile_ps * mtileb * slice_pt;
600 600
601 surf->bo_size = offset + surflevel->slice_size * surflevel->nblk_z * surf->array_size; 601 surf->bo_size = offset + surflevel->slice_size * surflevel->nblk_z * surf->array_size;
@@ -1498,7 +1498,7 @@ static void si_surf_minify_2d(struct radeon_surface *surf,
1498 /* macro tile per slice */ 1498 /* macro tile per slice */
1499 mtile_ps = (mtile_pr * surflevel->nblk_y) / yalign; 1499 mtile_ps = (mtile_pr * surflevel->nblk_y) / yalign;
1500 surflevel->offset = offset; 1500 surflevel->offset = offset;
1501 surflevel->pitch_bytes = surflevel->nblk_x * bpe * slice_pt; 1501 surflevel->pitch_bytes = surflevel->nblk_x * bpe * surf->nsamples;
1502 surflevel->slice_size = mtile_ps * mtileb * slice_pt; 1502 surflevel->slice_size = mtile_ps * mtileb * slice_pt;
1503 1503
1504 surf->bo_size = offset + surflevel->slice_size * surflevel->nblk_z * surf->array_size; 1504 surf->bo_size = offset + surflevel->slice_size * surflevel->nblk_z * surf->array_size;