Module: Mesa Branch: staging/21.0 Commit: a08a0ab10e18b1a95a5cb67a9860d6c92fd016fa URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a08a0ab10e18b1a95a5cb67a9860d6c92fd016fa
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/9504> --- 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 27b72eea948..d1effd1937e 100644 --- a/src/gallium/drivers/zink/zink_instance.py +++ b/src/gallium/drivers/zink/zink_instance.py @@ -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: _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
