radeonsi: fix an out-of-bounds access in si_create_vertex_state
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 Oct 2021 13:36:13 +0000 (09:36 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 Oct 2021 03:57:30 +0000 (03:57 +0000)
commitb378d6c5dba925074066437f2b917defd745a912
treefbbc7d0e110108abfd776dbf25634f7df33f9d98
parentc85ce2531e12adaabbd44cbceffdf81e65d1ca14
radeonsi: fix an out-of-bounds access in si_create_vertex_state

Fixes: fb8f532ea1b - radeonsi: implement draw_vertex_state for lower display list overhead
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5484

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13309>
src/gallium/drivers/radeonsi/si_state.c