mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
lavapipe: Mark vertex elements dirty if the stride changed
Fixes: 7672545 ("gallium: move vertex stride to CSO")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27019>
This commit is contained in:
parent
6d98142eda
commit
cc94ff081c
1 changed files with 1 additions and 0 deletions
|
|
@ -500,6 +500,7 @@ static void emit_state(struct rendering_state *state)
|
|||
if (state->vb_strides_dirty) {
|
||||
for (unsigned i = 0; i < state->velem.count; i++)
|
||||
state->velem.velems[i].src_stride = state->vb_strides[state->velem.velems[i].vertex_buffer_index];
|
||||
state->ve_dirty = true;
|
||||
state->vb_strides_dirty = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue