lavapipe: handle index buffers with offsets for indirect draws
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 2 Jun 2023 14:19:36 +0000 (10:19 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 01:22:01 +0000 (01:22 +0000)
commit32096095356c1ea1fb6681d77338c7f209c4cc62
tree9d6399a81d6b3751c6b6ce8681e738a87525ebc8
parent1d64b185fea111406ce1d5ae107dc0139c3d6a9b
lavapipe: handle index buffers with offsets for indirect draws

gallium has no mechanism for setting an offset to the index buffer,
so this requires a new buffer to be created+bound dynamically at
the specified offset in order to read the correct data

cc: mesa-stable

Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23394>
src/gallium/frontends/lavapipe/lvp_execute.c