u_prim_restart: handle indirect draws
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sat, 11 Jul 2020 15:19:43 +0000 (11:19 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 19:34:03 +0000 (19:34 +0000)
commitc77a414ec2d3cfde3783300afcf59e4f87826b82
tree7e2fa4847fa31812d65e6528f8fd80b2cf66093d
parenta58081f97c120530a3b9c9a9bd6358dc3b54c773
u_prim_restart: handle indirect draws

this is pretty gross, but we need to map the indirect buffer to get the
index info and then use that for mapping the index buffer and translating
the restart index

Reviewed-by: Dave Airlie <airlied@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5886>
src/gallium/auxiliary/util/u_prim_restart.c