From b277cbd6202fb996689a5fc59a86197336e893bf Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 14 Jul 2022 21:09:32 +0200 Subject: [PATCH] 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 Reviewed-by: Dave Airlie Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index 1602e577a8c..6d024389107 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -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);