vk: Fix vkGetPhysicalDeviceSparseImageFormatProperties()
authorChad Versace <chad.versace@intel.com>
Mon, 28 Sep 2015 17:16:03 +0000 (10:16 -0700)
committerChad Versace <chad.versace@intel.com>
Mon, 28 Sep 2015 17:17:48 +0000 (10:17 -0700)
The driver does not yet support sparse images, so return zero properties for
all formats.

src/vulkan/anv_formats.c

index 516281f2274bba02a0ebaa8b13b0ab3e766254bb..3ec2c7774aa53eeabd8760cb9368c74edc81be7c 100644 (file)
@@ -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;
 }