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:
Roland Scheidegger 2022-07-14 21:09:32 +02:00 committed by Marge Bot
parent 356a60bd6c
commit b277cbd620

View file

@ -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);