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: db20152c8a ("panfrost: Handle Valhall texturing")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34839>
(cherry picked from commit cc58e30847)
This commit is contained in:
Lars-Ivar Hesselberg Simonsen 2025-05-06 16:39:46 +02:00 committed by Eric Engestrom
parent 2da50834fe
commit 684d6f0d68
2 changed files with 2 additions and 2 deletions

View file

@ -1144,7 +1144,7 @@
"description": "pan/texture: Correctly handle slice stride for MSAA",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "db20152c8a85a425dd54b27cc00961d2b5a4650f",
"notes": null

View file

@ -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);
}