mesa/src
Karmjit Mahil c923eff742 tu: Fix potential alloc of 0 size
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
    #1 0x7fada5cc10 in vk_default_alloc ../src/vulkan/util/vk_alloc.c:26
    #2 0x7fac50b270 in vk_alloc ../src/vulkan/util/vk_alloc.h:48
    #3 0x7fac555040 in vk_multialloc_alloc
       ../src/vulkan/util/vk_alloc.h:234
    #4 0x7fac555040 in void
       tu_CmdBeginRenderPass2<(chip)7>(VkCommandBuffer_T*,
VkRenderPassBeginInfo const*, VkSubpassBeginInfo const*)
../src/freedreno/vulkan/tu_cmd_buffer.cc:4634
    #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: 4cfd021e3f ("turnip: Save the renderpass's clear values in the cmdbuf state.")
Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32057>
2024-11-12 11:48:11 +00:00
..
amd radv,aco: save/restore overwritten VGPRs in the trap handler shader 2024-11-12 11:16:13 +00:00
android_stub
asahi hk: Bump up max buffer size 2024-11-11 14:33:02 +00:00
broadcom broadcom/ci: add flakes seen recently 2024-11-08 22:49:21 +00:00
c11 build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
compiler nir/opt_16bit_tex_image: optimize extract half sources 2024-11-12 10:19:40 +00:00
drm-shim drm-shim: stub synobj_timeline_wait and query ioctl 2024-07-16 11:17:59 +02:00
egl vulkan/wsi/wayland: Pace frames with commit-timing-v1 2024-11-07 00:03:23 +00:00
etnaviv etnaviv: isa: Add img_store instruction 2024-10-23 07:58:04 +00:00
freedreno tu: Fix potential alloc of 0 size 2024-11-12 11:48:11 +00:00
gallium asahi: factor out more compiled shader 2024-11-11 14:33:02 +00:00
gbm gbm/dri: Fix color format for big endian. 2024-10-25 14:18:24 +00:00
getopt build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
gfxstream gfxstream: use vulkan_lite_runtime 2024-11-08 08:10:09 -08:00
glx glx: Fix the GLX_EXT_swap_control_tear drawable attributes 2024-10-23 19:55:53 +00:00
gtest build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imagination pvr: Make Vulkan driver depend only on nir headers, not library 2024-10-23 16:47:34 +00:00
imgui
intel anv: Align anv_descriptor_pool::host_mem 2024-11-11 19:45:14 +00:00
loader loader: Fix typo in __DRI_IMAGE_FORMAT_XBGR16161616 definition 2024-10-25 14:18:24 +00:00
mapi meson: remove selinux option 2024-10-21 01:14:35 +00:00
mesa st/mesa: implement key->persample_shading for lowered IO 2024-11-06 15:51:51 +00:00
microsoft dzn: Clean up dri options cache 2024-11-06 20:53:13 +00:00
nouveau nv/codegen: Do not use a zero immediate for tex instructions 2024-11-08 09:18:54 +00:00
panfrost panvk: Implement global priority extensions 2024-11-12 08:46:22 +00:00
tool perfetto: Add Panfrost data sources to system.cfg 2024-08-22 18:33:45 +00:00
util util: Fix some brackets in util_dynarray_.*_ptr 2024-11-11 07:53:13 +00:00
virtio virgl: Propagate the GL_MAX_stage_SHADER_STORAGE_BLOCKS for each stage 2024-11-08 12:26:06 +00:00
vulkan vulkan/runtime: return same cmdbuf level from the command pool freelist 2024-11-08 17:20:43 +00:00
x11 meson: require dri3 modifiers 2024-09-06 17:34:17 +00:00
.clang-format panfrost: Move ForEachMacros into panfrost 2024-09-12 20:04:58 +00:00
meson.build mesa: add gfxstream-experimental to -Dvulkan-drivers 2024-09-19 20:06:04 +00:00