virgl: Fix stack overflow in virgl_bind_sampler_states
authorTim Pambor <tp@osasysteme.de>
Thu, 15 Jun 2023 15:06:28 +0000 (15:06 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Jun 2023 07:34:41 +0000 (07:34 +0000)
commit1ad79cb84fc3cd5d2a3a4db532ec976ec4bcf5d1
tree903bc6ebe536436f9e71ca42047953b2f28c5f9b
parent0e726c63ff8f0b2d9639da450f9f2ae57cf8407b
virgl: Fix stack overflow in virgl_bind_sampler_states

Triggered on hosts with more than 32 samplers.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9207
Fixes: 63c4c559 ("virgl: obtain supported number of shader sampler views from host")
Signed-off-by: Tim Pambor <tp@osasysteme.de>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23678>
src/gallium/drivers/virgl/virgl_context.c