diff options
Diffstat (limited to 'recipes-graphics/vulkan/vulkan-wsi-layer/0002-wsialloc-initialize-local_strides-array.patch')
| -rw-r--r-- | recipes-graphics/vulkan/vulkan-wsi-layer/0002-wsialloc-initialize-local_strides-array.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-graphics/vulkan/vulkan-wsi-layer/0002-wsialloc-initialize-local_strides-array.patch b/recipes-graphics/vulkan/vulkan-wsi-layer/0002-wsialloc-initialize-local_strides-array.patch new file mode 100644 index 000000000..a60dd20d0 --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-wsi-layer/0002-wsialloc-initialize-local_strides-array.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 9486151f7cebe8e093109751c24a2ffcd22d538e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jiyu Yang <jiyu.yang@nxp.com> | ||
| 3 | Date: Sat, 25 Jul 2026 06:48:45 +0800 | ||
| 4 | Subject: [PATCH 2/7] wsialloc: initialize local_strides array | ||
| 5 | |||
| 6 | Initialize local_strides to zero to silence GCC | ||
| 7 | -Wmaybe-uninitialized warnings and avoid -Werror build | ||
| 8 | failures. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com> | ||
| 13 | --- | ||
| 14 | util/wsialloc/wsialloc_helpers.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/util/wsialloc/wsialloc_helpers.c b/util/wsialloc/wsialloc_helpers.c | ||
| 18 | index a87c5aa..2e93335 100644 | ||
| 19 | --- a/util/wsialloc/wsialloc_helpers.c | ||
| 20 | +++ b/util/wsialloc/wsialloc_helpers.c | ||
| 21 | @@ -137,7 +137,7 @@ wsialloc_error wsiallocp_alloc(wsialloc_allocator *allocator, wsiallocp_alloc_ca | ||
| 22 | return WSIALLOC_ERROR_INVALID; | ||
| 23 | } | ||
| 24 | |||
| 25 | - int local_strides[WSIALLOC_MAX_PLANES]; | ||
| 26 | + int local_strides[WSIALLOC_MAX_PLANES] = {0}; | ||
| 27 | uint32_t local_offsets[WSIALLOC_MAX_PLANES]; | ||
| 28 | wsialloc_error err = WSIALLOC_ERROR_NONE; | ||
| 29 | wsialloc_format_descriptor selected_format_desc = {}; | ||
| 30 | -- | ||
| 31 | 2.43.0 | ||
| 32 | |||
