mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
vulkan: fix uninitialized variables
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13892>
This commit is contained in:
parent
d5757c965a
commit
d7957df318
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ vk_spec_info_to_nir_spirv(const VkSpecializationInfo *spec_info,
|
|||
#define STACK_ARRAY_SIZE 8
|
||||
|
||||
#define STACK_ARRAY(type, name, size) \
|
||||
type _stack_##name[STACK_ARRAY_SIZE], *const name = \
|
||||
type _stack_##name[STACK_ARRAY_SIZE] = {0}, *const name = \
|
||||
(size) <= STACK_ARRAY_SIZE ? _stack_##name : malloc((size) * sizeof(type))
|
||||
|
||||
#define STACK_ARRAY_FINISH(name) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue