mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
radeonsi: iterate from draw 1 for total/min_direct_count computation
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8653>
This commit is contained in:
parent
01e3d28829
commit
67c2921193
1 changed files with 3 additions and 2 deletions
|
|
@ -1837,8 +1837,9 @@ static void si_draw_vbo(struct pipe_context *ctx,
|
|||
}
|
||||
}
|
||||
} else {
|
||||
min_direct_count = num_draws ? UINT_MAX : 0;
|
||||
for (unsigned i = 0; i < num_draws; i++) {
|
||||
total_direct_count = min_direct_count = draws[0].count;
|
||||
|
||||
for (unsigned i = 1; i < num_draws; i++) {
|
||||
unsigned count = draws[i].count;
|
||||
|
||||
total_direct_count += count;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue