lavapipe: null out local var to avoid uninit warning

harmless warning, but annoying

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41312>
This commit is contained in:
Mike Blumenkrantz 2026-04-30 13:11:41 -04:00 committed by Marge Bot
parent f4461b66b6
commit ea57814003

View file

@ -544,7 +544,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetDeviceImageSubresourceLayoutKHR(
const VkDeviceImageSubresourceInfoKHR* pInfo,
VkSubresourceLayout2KHR* pLayout)
{
VkImage image;
VkImage image = VK_NULL_HANDLE;
/* technically supposed to be able to do this without creating an image, but that's harder */
if (lvp_image_create(_device, pInfo->pCreateInfo, NULL, &image) != VK_SUCCESS)
return;