summaryrefslogtreecommitdiff
path: root/radeon
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-08-19 03:54:34 +0200
committerMarek Olšák <maraeo@gmail.com>2012-08-24 16:51:14 +0200
commit58545722d0ee52f112859322466d9366915575b5 (patch)
treed64b1e45895422bbc784182150fd7cd6cd98c66f /radeon
parentf215d651377d98f5998118c6824aeb2db75513be (diff)
radeon: fix allocation of MSAA surfaces on r600-r700
Reviewed-by: Jerome Glisse <jglisse@redhat.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 892dca64..98f4aaf5 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -165,7 +165,7 @@ static void surf_minify(struct radeon_surface *surf,
surf->level[level].nblk_z = ALIGN(surf->level[level].nblk_z, zalign);
surf->level[level].offset = offset;
- surf->level[level].pitch_bytes = surf->level[level].nblk_x * surf->bpe;
+ surf->level[level].pitch_bytes = surf->level[level].nblk_x * surf->bpe * surf->nsamples;
surf->level[level].slice_size = surf->level[level].pitch_bytes * surf->level[level].nblk_y;
surf->bo_size = offset + surf->level[level].slice_size * surf->level[level].nblk_z * surf->array_size;