From f1a7c7841f4484d81d4f6c0242e04fdaea5f0933 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 30 Nov 2015 12:21:19 -0800 Subject: vk/0.210.0: Switch to the new VKAPI function decorations While we're at it, we do a bunch of the VkResult -> void updates --- src/vulkan/anv_image.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/vulkan/anv_image.c') diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c index 973e8bd609a..1a500d2b4e4 100644 --- a/src/vulkan/anv_image.c +++ b/src/vulkan/anv_image.c @@ -422,7 +422,7 @@ anv_surface_get_subresource_layout(struct anv_image *image, layout->size = surface->stride * image->extent.height; } -VkResult anv_GetImageSubresourceLayout( +void anv_GetImageSubresourceLayout( VkDevice device, VkImage _image, const VkImageSubresource* pSubresource, @@ -444,10 +444,8 @@ VkResult anv_GetImageSubresourceLayout( pSubresource, pLayout); break; default: - return vk_error(VK_UNSUPPORTED); + assert(!"Invalid image aspect"); } - - return VK_SUCCESS; } VkResult -- cgit v1.2.3