mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
pan/buffer: Add the offset to the size for buffer textures
In the attribute model, the size is for the attribute binding and the
offset is an offset into that range. If we're going to use that to
offset the buffer itself, we need to increase the size accordingly.
Fixes: a21ee564e2 ("pan/bi: Make texel buffers use Attribute Buffers")
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40576>
This commit is contained in:
parent
8dc458225b
commit
ce56f49561
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue