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>
(cherry picked from commit cc94ff081c9b431dbb1242a04bd4efe0feaf5dde)
This commit is contained in:
Konstantin Seurer 2024-01-11 19:30:10 +01:00 committed by Eric Engestrom
parent 6d1dae874d
commit 83b5a3a3f9
2 changed files with 2 additions and 1 deletions

View file

@ -1144,7 +1144,7 @@
"description": "lavapipe: Mark vertex elements dirty if the stride changed",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "76725452239e9e7740c0edd6a5f3663ab897c343",
"notes": null

View file

@ -501,6 +501,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;
}