From: Alyssa Rosenzweig Date: Wed, 22 Jul 2020 18:51:45 +0000 (-0400) Subject: panfrost: Ensure AFBC slices are aligned X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24c921b1b5cc427c7ab1abd76c443db4a008d1b9;p=mesa.git panfrost: Ensure AFBC slices are aligned Signed-off-by: Alyssa Rosenzweig Tested-by: Icecream95 Part-of: --- 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 */