radv: update VK_KHR_image_format_list for Vulkan 1.2
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 15 Oct 2019 07:26:20 +0000 (09:26 +0200)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 15 Jan 2020 14:42:25 +0000 (08:42 -0600)
Promoted to Vulkan 1.2 with the KHR suffix omitted.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_image.c

index 220cd91188dd2da147287965bb9aef5c50fbbf92..1640d9c50198bfe0804f8e53fee8e1962b2db260 100644 (file)
@@ -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) {