diff --git a/.pick_status.json b/.pick_status.json index 85dd9322ec4..3825641b19e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3714,7 +3714,7 @@ "description": "pan/texture: Set plane size to slice size", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "db20152c8a85a425dd54b27cc00961d2b5a4650f", "notes": null diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c index 817706c45f7..0cadf34afeb 100644 --- a/src/panfrost/lib/pan_texture.c +++ b/src/panfrost/lib/pan_texture.c @@ -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 =