aux/draw: Use the draw info we get passed in instead of our own

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28641>
This commit is contained in:
Yusuf Khan 2024-04-22 19:22:40 -05:00 committed by Marge Bot
parent 377600b9df
commit e7a2127f0e

View file

@ -263,7 +263,6 @@ util_draw_multi(struct pipe_context *pctx, const struct pipe_draw_info *info,
const struct pipe_draw_start_count_bias *draws,
unsigned num_draws)
{
struct pipe_draw_info tmp_info = *info;
unsigned drawid = drawid_offset;
/* If you call this with num_draws==1, that is probably going to be
@ -273,8 +272,8 @@ util_draw_multi(struct pipe_context *pctx, const struct pipe_draw_info *info,
for (unsigned i = 0; i < num_draws; i++) {
if (indirect || (draws[i].count && info->instance_count))
pctx->draw_vbo(pctx, &tmp_info, drawid, indirect, &draws[i], 1);
if (tmp_info.increment_draw_id)
pctx->draw_vbo(pctx, info, drawid, indirect, &draws[i], 1);
if (info->increment_draw_id)
drawid++;
}
}