From cc58e30847a84d699c107b14fddc6624dd1b2243 Mon Sep 17 00:00:00 2001 From: Lars-Ivar Hesselberg Simonsen Date: Tue, 6 May 2025 16:39:46 +0200 Subject: [PATCH] pan/texture: Correctly handle slice stride for MSAA Currently, we will always be setting the slice stride in the plane descriptor to the surface stride, as the check for multisampling is true even for single sampled surfaces. This change fixes this check. Fixes: db20152c8a8 ("panfrost: Handle Valhall texturing") Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/lib/pan_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c index 85b99790f4d..817706c45f7 100644 --- a/src/panfrost/lib/pan_texture.c +++ b/src/panfrost/lib/pan_texture.c @@ -435,7 +435,7 @@ panfrost_emit_plane(const struct pan_image_view *iview, cfg.two_plane_yuv_chroma.secondary_pointer = sections[plane_index + 1].pointer; } else if (!panfrost_format_is_yuv(layout->format)) { - cfg.slice_stride = layout->nr_samples + cfg.slice_stride = layout->nr_samples > 1 ? surface_stride : panfrost_get_layer_stride(layout, level); }