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:

committed by
Marge Bot

parent
6d98142eda
commit
cc94ff081c
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user