diff --git a/.pick_status.json b/.pick_status.json index f28ebe5b462..7f539ba95f2 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2064,7 +2064,7 @@ "description": "pan/buffer: Add the offset to the size for buffer textures", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "a21ee564e2051e5e6827ce333da1f85b8b828e1d", "notes": null diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c index 23a1585bbd4..e4c0988978d 100644 --- a/src/panfrost/lib/pan_texture.c +++ b/src/panfrost/lib/pan_texture.c @@ -1345,7 +1345,7 @@ GENX(pan_buffer_texture_emit)(const struct pan_buffer_view *bview, cfg.type = MALI_ATTRIBUTE_TYPE_1D; cfg.pointer = bview->base; cfg.stride = stride; - cfg.size = bview->width_el * stride; + cfg.size = bview->width_el * stride + bview->offset; } pan_pack(out_attrib, ATTRIBUTE, cfg) {