diff --git a/src/panfrost/lib/pan_buffer.c b/src/panfrost/lib/pan_buffer.c index cea37fc8088..70d187569ff 100644 --- a/src/panfrost/lib/pan_buffer.c +++ b/src/panfrost/lib/pan_buffer.c @@ -53,7 +53,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) {