util/prim_restart: revert part of bad fix
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 28 May 2021 10:14:46 +0000 (12:14 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 29 May 2021 09:13:03 +0000 (09:13 +0000)
commit05bb449610fd2d0a96cbb18c70923cabdb15bb36
tree5e541b26bcc3ad29befe21ebddaa28065d0d6e6a
parent1dfad514ea31522eaa04afe6873a72f0c6fcb5ab
util/prim_restart: revert part of bad fix

When drawing using util_translate_prim_restart_ib, zink explicitly
ignores pipe_draw_start_count_bias::start, because
util_translate_prim_restart_ib used to create a new index-buffer without
padding at the start.

This makes a lot of sense, because creating a padded index buffer is
just wasteful.

So let's walk back on the choice of starting to pad the output buffer.

Fixes: 1272c2e0524 ("util/prim_restart: fix util_translate_prim_restart_ib")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4851
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11059>
src/gallium/auxiliary/util/u_prim_restart.c