mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-06 01:40:26 +01:00
lavapipe: increment drawid for multidraws
Fixes:f99f7c06("lavapipe: implement multidraw ext") Reviewed-by: Joshua Ashton <joshua@froggi.es> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11878> (cherry picked from commit6689c3917e)
This commit is contained in:
parent
bf260384b9
commit
7fbea74c23
2 changed files with 3 additions and 1 deletions
|
|
@ -229,7 +229,7 @@
|
|||
"description": "lavapipe: increment drawid for multidraws",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f99f7c06e71d6194d4206bde58a8acb5a42d90ed"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1642,6 +1642,7 @@ static void handle_draw(struct lvp_cmd_buffer_entry *cmd,
|
|||
state->info.start_instance = cmd->u.draw.first_instance;
|
||||
state->info.instance_count = cmd->u.draw.instance_count;
|
||||
state->info.view_mask = subpass->view_mask;
|
||||
state->info.increment_draw_id = true;
|
||||
|
||||
state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, cmd->u.draw.draws, cmd->u.draw.draw_count);
|
||||
}
|
||||
|
|
@ -2207,6 +2208,7 @@ static void handle_draw_indexed(struct lvp_cmd_buffer_entry *cmd,
|
|||
state->info.start_instance = cmd->u.draw_indexed.first_instance;
|
||||
state->info.instance_count = cmd->u.draw_indexed.instance_count;
|
||||
state->info.view_mask = subpass->view_mask;
|
||||
state->info.increment_draw_id = true;
|
||||
|
||||
if (state->info.primitive_restart)
|
||||
state->info.restart_index = util_prim_restart_index_from_size(state->info.index_size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue