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/9499>
This commit is contained in:
Adam Jackson 2021-03-10 12:09:00 -05:00 committed by Marge Bot
parent 6ceb6b509e
commit ea27f2bf09
1 changed files with 2 additions and 2 deletions

View File

@ -107,10 +107,10 @@ VkInstance
zink_create_instance(struct zink_instance_info *instance_info)
{
/* 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: