mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +01:00
lavapipe: initialize index_bias to zero for non-indexed draws
This is mostly just cosmetic, since the index bias will be ignored. (The multi draw function already initializes this to 0 too.) Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18126>
This commit is contained in:
parent
356a60bd6c
commit
b277cbd620
1 changed files with 1 additions and 0 deletions
|
|
@ -2044,6 +2044,7 @@ static void handle_draw(struct vk_cmd_queue_entry *cmd,
|
|||
|
||||
draw.start = cmd->u.draw.first_vertex;
|
||||
draw.count = cmd->u.draw.vertex_count;
|
||||
draw.index_bias = 0;
|
||||
|
||||
state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
|
||||
state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, &draw, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue