aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2019-11-21 22:48:32 -0800
committerKristian H. Kristensen <[email protected]>2019-12-19 09:56:05 -0800
commita4db9a151294b8b34eea6db868fc15eea6cf2fac (patch)
treeaec200a39b6a59995cb3cf9484264d4087874354
parente688a16e2ba474f1307b3cde7fd847c58c466473 (diff)
freedreno/a6xx: Set up multisample sysmem MRTs correctly
We had an extra factor of num_samples in the stride. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Kristian H. Kristensen <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848>
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_gmem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
index dfff3ecc512..e8f0992f310 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
@@ -112,7 +112,7 @@ emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb,
offset = fd_resource_offset(rsc, psurf->u.tex.level,
psurf->u.tex.first_layer);
- stride = slice->pitch * rsc->layout.cpp * pfb->samples;
+ stride = slice->pitch * rsc->layout.cpp;
swap = fd6_resource_swap(rsc, pformat);
tile_mode = fd_resource_tile_mode(psurf->texture, psurf->u.tex.level);
@@ -127,8 +127,6 @@ emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb,
type = LAYER_CUBEMAP;
else if (psurf->texture->target == PIPE_TEXTURE_3D)
type = LAYER_3D;
-
- stride /= pfb->samples;
}
debug_assert((offset + slice->size0) <= fd_bo_size(rsc->bo));