lavapipe: implement VK_EXT_index_type_uint8
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 14 Dec 2020 11:01:40 +0000 (12:01 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 17 Dec 2020 08:48:16 +0000 (08:48 +0000)
commit6526e6d11b82a96139c3e5d16120765262d5707e
treec82ab64824ac41435475d826509fe7352ff35e13
parent2832cbea7ae078c0ad1ef93a6041d3d3bd0fd243
lavapipe: implement VK_EXT_index_type_uint8

Since Gallium supports 8 bit indices, this extension is a simple matter
of plumbing a value through, exposing a feature and flipping the switch
for the extension. This lets zink avoid up-converting the index-buffer
before drawing.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8082>
src/gallium/frontends/lavapipe/lvp_device.c
src/gallium/frontends/lavapipe/lvp_execute.c
src/gallium/frontends/lavapipe/lvp_extensions.py