diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2026-10-23 15:26:52 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-23 15:26:52 -0300 |
| commit | 35c00d196b70706279bbc55ba7ce556837bb1c53 (patch) | |
| tree | e39908b4d0c0095a4a97b978e55574f81512970a /recipes-graphics/vulkan/vulkan-wsi-layer/0002-wsialloc-initialize-local_strides-array.patch | |
| parent | 0ae8dc165dc8e99681d6e04dde6c23e9ceebc83e (diff) | |
| parent | ddde9c0c14b9ce8ec453a495cf1b3e310bf995d5 (diff) | |
| download | meta-freescale-master.tar.gz | |
vulkan-wsi-layer: Update for the Mali r56p0 driver
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 | |||
