From: Alyssa Rosenzweig Date: Sun, 30 May 2021 22:54:40 +0000 (+0530) Subject: asahi: Align strides to 16 bytes X-Git-Tag: upstream/21.2.3~2687 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=963f07cb6e406425b9d07ba245006c6d9105b367;p=platform%2Fupstream%2Fmesa.git asahi: Align strides to 16 bytes Apparently required for texturing. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 5eee838..e306375 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -173,7 +173,7 @@ agx_resource_create(struct pipe_screen *screen, DRM_FORMAT_MOD_APPLE_64X64_MORTON_ORDER : DRM_FORMAT_MOD_LINEAR; - nresource->slices[0].line_stride = stride; + nresource->slices[0].line_stride = ALIGN_POT(stride, 16); unsigned size = 4 * ALIGN_POT(templ->width0, 64) * ALIGN_POT(templ->height0, 64) * templ->depth0; nresource->bo = agx_bo_create(dev, size, AGX_MEMORY_TYPE_FRAMEBUFFER);