vulkan: use vk_object_zalloc() for acceleration structs

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40385>
This commit is contained in:
Samuel Pitoiset 2025-12-02 08:42:00 +01:00 committed by Marge Bot
parent e5bb3edad8
commit 730054ca47

View file

@ -74,7 +74,7 @@ vk_common_CreateAccelerationStructureKHR(VkDevice _device,
VK_FROM_HANDLE(vk_device, device, _device);
VK_FROM_HANDLE(vk_buffer, buffer, pCreateInfo->buffer);
struct vk_acceleration_structure *accel_struct = vk_object_alloc(
struct vk_acceleration_structure *accel_struct = vk_object_zalloc(
device, pAllocator, sizeof(struct vk_acceleration_structure),
VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_KHR);