vulkan/util: Make STACK_ARRAY() work for arrays of pointers
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 16 Mar 2022 09:21:39 +0000 (02:21 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 16:21:45 +0000 (16:21 +0000)
commit7e0ab29cfd7edbbee27d913230bfea576c6e1867
treedd7fbafc67a826a6c6d9528a2e5cc6c82f21a6f3
parentbb1fb07ecde0e521ec0f5b08c790c362c6f158c2
vulkan/util: Make STACK_ARRAY() work for arrays of pointers

And add an explicit cast on the pointer returned by malloc() to
make C++ happy.

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14766>
src/vulkan/util/vk_util.h