From: Chad Versace Date: Mon, 28 Sep 2015 17:16:03 +0000 (-0700) Subject: vk: Fix vkGetPhysicalDeviceSparseImageFormatProperties() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97636345dafd100dc80a796e53e0a5439c36d421;p=mesa.git vk: Fix vkGetPhysicalDeviceSparseImageFormatProperties() The driver does not yet support sparse images, so return zero properties for all formats. --- diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index 516281f2274..3ec2c7774aa 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -325,5 +325,8 @@ VkResult anv_GetPhysicalDeviceSparseImageFormatProperties( uint32_t* pNumProperties, VkSparseImageFormatProperties* pProperties) { - stub_return(VK_UNSUPPORTED); + /* Sparse images are not yet supported. */ + *pNumProperties = 0; + + return VK_SUCCESS; }