vulkan/wsi/wayland: fix an invalid u_vector_init call
authorChia-I Wu <olvaffe@gmail.com>
Tue, 5 Oct 2021 01:01:06 +0000 (18:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 Oct 2021 17:42:41 +0000 (17:42 +0000)
commiteed0fc4caf27795858ed758c228e55b2ef74e518
tree2e6371abf0056b818aa8d183ce8ab1c68eae5a46
parentd2543658ef6fe0ad59af217a09a931d3b6174a43
vulkan/wsi/wayland: fix an invalid u_vector_init call

u_vector_init requires size to be power-of-two.

Fixes: 151b65b2119 ("vulkan/wsi/wayland: generalize modifier handling")
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13186>
src/vulkan/wsi/wsi_common_wayland.c