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:
parent
6ceb6b509e
commit
ea27f2bf09
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue