mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
softpipe: Use util_draw_multi() helper
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9742>
This commit is contained in:
parent
9407126313
commit
ed1ac41887
1 changed files with 1 additions and 7 deletions
|
|
@ -65,13 +65,7 @@ softpipe_draw_vbo(struct pipe_context *pipe,
|
|||
unsigned num_draws)
|
||||
{
|
||||
if (num_draws > 1) {
|
||||
struct pipe_draw_info tmp_info = *info;
|
||||
|
||||
for (unsigned i = 0; i < num_draws; i++) {
|
||||
softpipe_draw_vbo(pipe, &tmp_info, indirect, &draws[i], 1);
|
||||
if (tmp_info.increment_draw_id)
|
||||
tmp_info.drawid++;
|
||||
}
|
||||
util_draw_multi(pipe, info, indirect, draws, num_draws);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue