From: Joshua Ashton Date: Mon, 4 May 2020 10:52:55 +0000 (+0100) Subject: anv: Remove RANGE_SIZE usage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4d11ea3c43447da5add84bdd2e0c91786d9af9b;p=mesa.git anv: Remove RANGE_SIZE usage These were removed from the latest Vulkan headers https://github.com/KhronosGroup/Vulkan-Docs/issues/1230 Reviewed-by: Eric Engestrom Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 05b38f22661..eb9356df9b4 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1250,7 +1250,6 @@ vk_image_layout_to_usage_flags(VkImageLayout layout, assert(aspect == VK_IMAGE_ASPECT_COLOR_BIT); return VK_IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT; - case VK_IMAGE_LAYOUT_RANGE_SIZE: case VK_IMAGE_LAYOUT_MAX_ENUM: unreachable("Invalid image layout."); } @@ -1294,7 +1293,6 @@ vk_image_layout_is_read_only(VkImageLayout layout, case VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL: return aspect == VK_IMAGE_ASPECT_STENCIL_BIT; - case VK_IMAGE_LAYOUT_RANGE_SIZE: case VK_IMAGE_LAYOUT_MAX_ENUM: unreachable("Invalid image layout."); } @@ -1348,7 +1346,6 @@ anv_layout_to_aux_state(const struct gen_device_info * const devinfo, /* Handle a few special cases */ switch (layout) { /* Invalid layouts */ - case VK_IMAGE_LAYOUT_RANGE_SIZE: case VK_IMAGE_LAYOUT_MAX_ENUM: unreachable("Invalid image layout.");