Skip to content

lima: fix lima_set_vertex_buffers()

Icenowy Zheng requested to merge icenowy/mesa:lima-fix-set-vbo into master

When setting the vertex buffers, lima calls util_set_vertex_buffers_mask() to reference and copy buffers. That function function adds dst with start_slot internally, so lima should not offset the destination address again.

This is discovered when comparing with other drivers, and fixed by removing the extra offset in lima_set_vertex_buffers().

This fixes draws that get translated in u_vbuf, because u_vbuf adds extra vertex buffers when translating.

Signed-off-by: Icenowy Zheng icenowy@aosc.io

Merge request reports