From: Chad Versace Date: Wed, 16 Jan 2019 23:01:35 +0000 (-0800) Subject: turnip: Annotate vkGetImageSubresourceLayout with tu_stub X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aaa59ef70c100fe861c099197581a1131f2bc8a4;p=mesa.git turnip: Annotate vkGetImageSubresourceLayout with tu_stub Reviewed-by: Chia-I Wu Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/freedreno/vulkan/tu_image.c b/src/freedreno/vulkan/tu_image.c index af90b1ff310..0a4bb871284 100644 --- a/src/freedreno/vulkan/tu_image.c +++ b/src/freedreno/vulkan/tu_image.c @@ -283,6 +283,12 @@ tu_GetImageSubresourceLayout(VkDevice _device, const VkImageSubresource *pSubresource, VkSubresourceLayout *pLayout) { + tu_stub(); + + /* Even though this is a stub, let's avoid heisenbugs by providing + * deterministic behavior. + */ + memset(pLayout, 0, sizeof(*pLayout)); } VkResult