Module: Mesa Branch: master Commit: ea27f2bf092f462171fe14a44619565d14f43fb8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea27f2bf092f462171fe14a44619565d14f43fb8
Author: Adam Jackson <[email protected]> Date: Wed Mar 10 12:09:00 2021 -0500 zink: Fix a thinko in instance setup It really does help to size these arrays correctly. Fixes: 2b4fcf0a063 zink: generate instance creation code with a python script Reviewed-By: Mike Blumenkrantz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9499> --- src/gallium/drivers/zink/zink_instance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_instance.py b/src/gallium/drivers/zink/zink_instance.py index 933166b2371..bf384717bad 100644 --- a/src/gallium/drivers/zink/zink_instance.py +++ b/src/gallium/drivers/zink/zink_instance.py @@ -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: _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
