Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We can end up calling vk_multialloc_alloc with 0 size when `attachment_count` is 0 and `clearValueCount` is 0. Addressed: ``` Direct leak of 1 byte(s) in 1 object(s) allocated from: #0 0x7faf033ee0 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145 waydroid#1 0x7fada5cc10 in vk_default_alloc ../src/vulkan/util/vk_alloc.c:26 waydroid#2 0x7fac50b270 in vk_alloc ../src/vulkan/util/vk_alloc.h:48 waydroid#3 0x7fac555040 in vk_multialloc_alloc ../src/vulkan/util/vk_alloc.h:234 waydroid#4 0x7fac555040 in void tu_CmdBeginRenderPass2<(chip)7>(VkCommandBuffer_T*, VkRenderPassBeginInfo const*, VkSubpassBeginInfo const*) ../src/freedreno/vulkan/tu_cmd_buffer.cc:4634 waydroid#5 0x7fac900760 in vk_common_CmdBeginRenderPass ../src/vulkan/runtime/vk_render_pass.c:261 ``` seen in: dEQP-VK.robustness.robustness2.bind.notemplate.r32i.dontunroll.nonvolatile.uniform_texel_buffer.no_fmt_qual.len_252.samples_1.1d.frag Fixes: 4cfd021 ("turnip: Save the renderpass's clear values in the cmdbuf state.") Signed-off-by: Karmjit Mahil <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32057> (cherry picked from commit c923eff742b83cc475d02ad57c538754db991c06)
- Loading branch information