Skip to content

zink: Store zink_vertex_elements_hw_state::b.strides by binding id

Sviatoslav Peleshko requested to merge GL/mesa:fix_zink_vertex_stride_order into main

What does this MR do and why?

zink: Store zink_vertex_elements_hw_state::b.strides by binding id

Currently, we store strides by vertex buffer id, which means that we have to map the binding index to the vertex buffer index every time we want to get a stride for a given binding. This also creates an order mismatch when we pass strides directly to CmdBindVertexBuffers2EXT. Instead of converting strides for CmdBindVertexBuffers2EXT too, we can just store strides by binding id, and drop the mapping in other places.

Fixes: 76725452 ("gallium: move vertex stride to CSO") Closes: #9817 (closed) Signed-off-by: Sviatoslav Peleshko sviatoslav.peleshko@globallogic.com

Merge request reports