radeonsi: correct an assertion if we get a display list with no vertex buffers
authorMarek Olšák <marek.olsak@amd.com>
Mon, 13 Mar 2023 06:21:29 +0000 (02:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Mar 2023 13:16:34 +0000 (13:16 +0000)
commit999b956ebc4c26fa0c407369e630c687ece02209
treeebb6f54cae667dde5db6a8e505cf731fff2790a9
parent9fad7ca659548b4b089e967dd0831272ba43c78d
radeonsi: correct an assertion if we get a display list with no vertex buffers

It's possible to get a display list with no vertex buffers if the linker
eliminates all VS inputs or if the list was built with glArrayElement with
no enabled attribs.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21860>
src/gallium/drivers/radeonsi/si_state_draw.cpp