venus: suppress a few -Wmaybe-uninitialized

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33757>
This commit is contained in:
Yiwei Zhang 2025-02-26 01:06:25 -08:00 committed by Marge Bot
parent f9fe08740a
commit bcb0b8c7f6

View file

@ -689,7 +689,7 @@ vn_physical_device_init_queue_family_properties(
struct vn_instance *instance = physical_dev->instance;
struct vn_ring *ring = instance->ring.ring;
const VkAllocationCallbacks *alloc = &instance->base.base.alloc;
uint32_t count;
uint32_t count = 0;
vn_call_vkGetPhysicalDeviceQueueFamilyProperties2(
ring, vn_physical_device_to_handle(physical_dev), &count, NULL);
@ -1239,7 +1239,7 @@ vn_physical_device_init_renderer_extensions(
const VkAllocationCallbacks *alloc = &instance->base.base.alloc;
/* get renderer extensions */
uint32_t count;
uint32_t count = 0;
VkResult result = vn_call_vkEnumerateDeviceExtensionProperties(
ring, vn_physical_device_to_handle(physical_dev), NULL, &count, NULL);
if (result != VK_SUCCESS)
@ -1499,7 +1499,7 @@ vn_instance_enumerate_physical_device_groups_locked(
const VkAllocationCallbacks *alloc = &instance->base.base.alloc;
VkResult result;
uint32_t count;
uint32_t count = 0;
result = vn_call_vkEnumeratePhysicalDeviceGroups(ring, instance_handle,
&count, NULL);
if (result != VK_SUCCESS)