summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_image.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-30 12:21:19 -0800
committerJason Ekstrand <[email protected]>2015-11-30 12:46:30 -0800
commitf1a7c7841f4484d81d4f6c0242e04fdaea5f0933 (patch)
tree5c63e34c134a2bf9ae6bd2369d4e8051556d55ee /src/vulkan/anv_image.c
parenta89a485e79ad40793a85979d86d45760362be21a (diff)
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
Diffstat (limited to 'src/vulkan/anv_image.c')
-rw-r--r--src/vulkan/anv_image.c6
1 files changed, 2 insertions, 4 deletions
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