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 516281f..3ec2c77 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;
 }