From 24c921b1b5cc427c7ab1abd76c443db4a008d1b9 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 22 Jul 2020 14:51:45 -0400 Subject: [PATCH] panfrost: Ensure AFBC slices are aligned Signed-off-by: Alyssa Rosenzweig Tested-by: Icecream95 Part-of: --- 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 */ -- 2.30.2