Module: Mesa Branch: master Commit: 24c921b1b5cc427c7ab1abd76c443db4a008d1b9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=24c921b1b5cc427c7ab1abd76c443db4a008d1b9
Author: Alyssa Rosenzweig <[email protected]> Date: Wed Jul 22 14:51:45 2020 -0400 panfrost: Ensure AFBC slices are aligned Signed-off-by: Alyssa Rosenzweig <[email protected]> Tested-by: Icecream95 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6159> --- src/gallium/drivers/panfrost/pan_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 49ed6c0b4cf..a34656b5bdf 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -309,7 +309,7 @@ panfrost_setup_slices(struct panfrost_resource *pres, size_t *bo_size) bool afbc = drm_is_afbc(pres->modifier); bool tiled = pres->modifier == DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED; bool linear = pres->modifier == DRM_FORMAT_MOD_LINEAR; - bool should_align = renderable || tiled; + bool should_align = renderable || tiled || afbc; /* We don't know how to specify a 2D stride for 3D textures */ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
