From: Samuel Pitoiset Date: Tue, 15 Oct 2019 07:26:20 +0000 (+0200) Subject: radv: update VK_KHR_image_format_list for Vulkan 1.2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3bdb4e6ff82940b4bc78a1cafb5718fe6365a1e;p=mesa.git radv: update VK_KHR_image_format_list for Vulkan 1.2 Promoted to Vulkan 1.2 with the KHR suffix omitted. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 220cd91188d..1640d9c5019 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -101,10 +101,10 @@ radv_use_tc_compat_htile_for_image(struct radv_device *device, return false; if (pCreateInfo->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) { - const struct VkImageFormatListCreateInfoKHR *format_list = - (const struct VkImageFormatListCreateInfoKHR *) + const struct VkImageFormatListCreateInfo *format_list = + (const struct VkImageFormatListCreateInfo *) vk_find_struct_const(pCreateInfo->pNext, - IMAGE_FORMAT_LIST_CREATE_INFO_KHR); + IMAGE_FORMAT_LIST_CREATE_INFO); /* We have to ignore the existence of the list if viewFormatCount = 0 */ if (format_list && format_list->viewFormatCount) { @@ -193,10 +193,10 @@ radv_use_dcc_for_image(struct radv_device *device, &blendable); if (pCreateInfo->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) { - const struct VkImageFormatListCreateInfoKHR *format_list = - (const struct VkImageFormatListCreateInfoKHR *) + const struct VkImageFormatListCreateInfo *format_list = + (const struct VkImageFormatListCreateInfo *) vk_find_struct_const(pCreateInfo->pNext, - IMAGE_FORMAT_LIST_CREATE_INFO_KHR); + IMAGE_FORMAT_LIST_CREATE_INFO); /* We have to ignore the existence of the list if viewFormatCount = 0 */ if (format_list && format_list->viewFormatCount) {