zink: Fix a thinko in instance setup

It really does help to size these arrays correctly.

Fixes: 2b4fcf0a06 zink: generate instance creation code with a python script
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9504>
This commit is contained in:
Adam Jackson 2021-03-10 12:09:00 -05:00 committed by Dylan Baker
parent 5d313fb5ec
commit 990e7373d5

View file

@ -63,10 +63,10 @@ VkInstance
zink_create_instance(struct zink_screen *screen)
{
/* reserve one slot for MoltenVK */
const char *layers[${len(extensions) + 1}] = { 0 };
const char *layers[${len(layers) + 1}] = { 0 };
uint32_t num_layers = 0;
const char *extensions[${len(layers) + 1}] = { 0 };
const char *extensions[${len(extensions) + 1}] = { 0 };
uint32_t num_extensions = 0;
%for ext in extensions: