From 79a7c6e3bd1a529238663f6da456e99bc2b2370e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 3 Feb 2023 18:42:29 -0500 Subject: [PATCH] asahi: Set layout->mipmapped_z for 3D textures There's a corner case where 3D textures have extra padding compared to 2D arrays. We need to communicate that to ail. Fixes dEQP-GLES3.functional.texture.specification.texstorage3d.size.3d_32x16x64_4_levels. That test now uses the same layout as Metal. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index acdc36b347f..5b39955c199 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -124,6 +124,7 @@ agx_resource_setup(struct agx_device *dev, struct agx_resource *nresource) nresource->layout = (struct ail_layout){ .tiling = ail_modifier_to_tiling(nresource->modifier), + .mipmapped_z = templ->target == PIPE_TEXTURE_3D, .format = templ->format, .width_px = templ->width0, .height_px = templ->height0,