pan/texture: Set plane size to slice size

Rather than setting the plane size to the full allocation minus the
current offset, set it to the actual size of the plane.

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>
This commit is contained in:
Lars-Ivar Hesselberg Simonsen 2025-05-06 16:42:44 +02:00 committed by Marge Bot
parent cc58e30847
commit 6a9a4b3eef

View file

@ -429,7 +429,7 @@ panfrost_emit_plane(const struct pan_image_view *iview,
pan_cast_and_pack(*payload, PLANE, cfg) {
cfg.pointer = pointer;
cfg.row_stride = row_stride;
cfg.size = layout->data_size - layout->slices[level].offset;
cfg.size = layout->slices[level].size;
if (is_chroma_2p) {
cfg.two_plane_yuv_chroma.secondary_pointer =