radv: Update MAX_API_VERSION to 1.1.0
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 21 Jan 2018 12:39:22 +0000 (13:39 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 20:18:34 +0000 (21:18 +0100)
v2: Don't bump supported version.
v3: Update json files.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/dev_icd.json.in
src/amd/vulkan/radeon_icd.json.in
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_extensions.py
src/amd/vulkan/radv_formats.c

index cc80641f5849490fd586b86031414e08e5a4db7d..dfd032cdfb7ec1aafd2d9b1b569fe23cd81de393 100644 (file)
@@ -2,6 +2,6 @@
     "file_format_version": "1.0.0",
     "ICD": {
         "library_path": "@libvulkan_radeon_path@",
-        "api_version": "1.0.3"
+        "api_version": "1.1.0"
     }
 }
index a8b441d672f74284e4bc7b9719eec91f93e168db..a99cb80ee92da4674edb25ee34735fe62f29c65c 100644 (file)
@@ -2,6 +2,6 @@
     "file_format_version": "1.0.0",
     "ICD": {
         "library_path": "@install_libdir@/libvulkan_radeon.so",
-        "api_version": "1.0.3"
+        "api_version": "1.1.0"
     }
 }
index 2b41baea3d34f406936755c4b5c5db6ae134d479..9238f76305deebce0587a6a7ff7a21a8d6ef8dc3 100644 (file)
@@ -2652,7 +2652,7 @@ VkResult radv_ResetCommandPool(
        return VK_SUCCESS;
 }
 
-void radv_TrimCommandPoolKHR(
+void radv_TrimCommandPool(
     VkDevice                                    device,
     VkCommandPool                               commandPool,
     VkCommandPoolTrimFlagsKHR                   flags)
index 056a5644dfa06dbdf6fe2e18032149aa1520186c..38b8dc78e1bed2616aa1207ea2eda5bf30665d2b 100644 (file)
@@ -829,10 +829,10 @@ void radv_UpdateDescriptorSets(
                                    descriptorCopyCount, pDescriptorCopies);
 }
 
-VkResult radv_CreateDescriptorUpdateTemplateKHR(VkDevice _device,
-                                                const VkDescriptorUpdateTemplateCreateInfoKHR *pCreateInfo,
-                                                const VkAllocationCallbacks *pAllocator,
-                                                VkDescriptorUpdateTemplateKHR *pDescriptorUpdateTemplate)
+VkResult radv_CreateDescriptorUpdateTemplate(VkDevice _device,
+                                             const VkDescriptorUpdateTemplateCreateInfoKHR *pCreateInfo,
+                                             const VkAllocationCallbacks *pAllocator,
+                                             VkDescriptorUpdateTemplateKHR *pDescriptorUpdateTemplate)
 {
        RADV_FROM_HANDLE(radv_device, device, _device);
        RADV_FROM_HANDLE(radv_descriptor_set_layout, set_layout, pCreateInfo->descriptorSetLayout);
@@ -902,9 +902,9 @@ VkResult radv_CreateDescriptorUpdateTemplateKHR(VkDevice _device,
        return VK_SUCCESS;
 }
 
-void radv_DestroyDescriptorUpdateTemplateKHR(VkDevice _device,
-                                             VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate,
-                                             const VkAllocationCallbacks *pAllocator)
+void radv_DestroyDescriptorUpdateTemplate(VkDevice _device,
+                                          VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate,
+                                          const VkAllocationCallbacks *pAllocator)
 {
        RADV_FROM_HANDLE(radv_device, device, _device);
        RADV_FROM_HANDLE(radv_descriptor_update_template, templ, descriptorUpdateTemplate);
@@ -983,10 +983,10 @@ void radv_update_descriptor_set_with_template(struct radv_device *device,
        }
 }
 
-void radv_UpdateDescriptorSetWithTemplateKHR(VkDevice _device,
-                                             VkDescriptorSet descriptorSet,
-                                             VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate,
-                                             const void *pData)
+void radv_UpdateDescriptorSetWithTemplate(VkDevice _device,
+                                          VkDescriptorSet descriptorSet,
+                                          VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate,
+                                          const void *pData)
 {
        RADV_FROM_HANDLE(radv_device, device, _device);
        RADV_FROM_HANDLE(radv_descriptor_set, set, descriptorSet);
index 666818f2c497da61e7bff0186c26a16cbfd0a640..f152c79e1c3a59747730721e6c22a7e4c78d16a5 100644 (file)
@@ -647,7 +647,7 @@ void radv_GetPhysicalDeviceFeatures(
        };
 }
 
-void radv_GetPhysicalDeviceFeatures2KHR(
+void radv_GetPhysicalDeviceFeatures2(
        VkPhysicalDevice                            physicalDevice,
        VkPhysicalDeviceFeatures2KHR               *pFeatures)
 {
@@ -820,7 +820,7 @@ void radv_GetPhysicalDeviceProperties(
        memcpy(pProperties->pipelineCacheUUID, pdevice->cache_uuid, VK_UUID_SIZE);
 }
 
-void radv_GetPhysicalDeviceProperties2KHR(
+void radv_GetPhysicalDeviceProperties2(
        VkPhysicalDevice                            physicalDevice,
        VkPhysicalDeviceProperties2KHR             *pProperties)
 {
@@ -941,7 +941,7 @@ void radv_GetPhysicalDeviceQueueFamilyProperties(
        assert(*pCount <= 3);
 }
 
-void radv_GetPhysicalDeviceQueueFamilyProperties2KHR(
+void radv_GetPhysicalDeviceQueueFamilyProperties2(
        VkPhysicalDevice                            physicalDevice,
        uint32_t*                                   pCount,
        VkQueueFamilyProperties2KHR                *pQueueFamilyProperties)
@@ -969,7 +969,7 @@ void radv_GetPhysicalDeviceMemoryProperties(
        *pMemoryProperties = physical_device->memory_properties;
 }
 
-void radv_GetPhysicalDeviceMemoryProperties2KHR(
+void radv_GetPhysicalDeviceMemoryProperties2(
        VkPhysicalDevice                            physicalDevice,
        VkPhysicalDeviceMemoryProperties2KHR       *pMemoryProperties)
 {
@@ -2567,7 +2567,7 @@ void radv_GetBufferMemoryRequirements(
        pMemoryRequirements->size = align64(buffer->size, pMemoryRequirements->alignment);
 }
 
-void radv_GetBufferMemoryRequirements2KHR(
+void radv_GetBufferMemoryRequirements2(
        VkDevice                                     device,
        const VkBufferMemoryRequirementsInfo2KHR*    pInfo,
        VkMemoryRequirements2KHR*                    pMemoryRequirements)
@@ -2604,7 +2604,7 @@ void radv_GetImageMemoryRequirements(
        pMemoryRequirements->alignment = image->alignment;
 }
 
-void radv_GetImageMemoryRequirements2KHR(
+void radv_GetImageMemoryRequirements2(
        VkDevice                                    device,
        const VkImageMemoryRequirementsInfo2KHR*    pInfo,
        VkMemoryRequirements2KHR*                   pMemoryRequirements)
@@ -2638,7 +2638,7 @@ void radv_GetImageSparseMemoryRequirements(
        stub();
 }
 
-void radv_GetImageSparseMemoryRequirements2KHR(
+void radv_GetImageSparseMemoryRequirements2(
        VkDevice                                    device,
        const VkImageSparseMemoryRequirementsInfo2KHR* pInfo,
        uint32_t*                                   pSparseMemoryRequirementCount,
@@ -2655,9 +2655,9 @@ void radv_GetDeviceMemoryCommitment(
        *pCommittedMemoryInBytes = 0;
 }
 
-VkResult radv_BindBufferMemory2KHR(VkDevice device,
-                                   uint32_t bindInfoCount,
-                                   const VkBindBufferMemoryInfoKHR *pBindInfos)
+VkResult radv_BindBufferMemory2(VkDevice device,
+                                uint32_t bindInfoCount,
+                                const VkBindBufferMemoryInfoKHR *pBindInfos)
 {
        for (uint32_t i = 0; i < bindInfoCount; ++i) {
                RADV_FROM_HANDLE(radv_device_memory, mem, pBindInfos[i].memory);
@@ -2686,12 +2686,12 @@ VkResult radv_BindBufferMemory(
                .memoryOffset = memoryOffset
        };
 
-       return radv_BindBufferMemory2KHR(device, 1, &info);
+       return radv_BindBufferMemory2(device, 1, &info);
 }
 
-VkResult radv_BindImageMemory2KHR(VkDevice device,
-                                  uint32_t bindInfoCount,
-                                  const VkBindImageMemoryInfoKHR *pBindInfos)
+VkResult radv_BindImageMemory2(VkDevice device,
+                               uint32_t bindInfoCount,
+                               const VkBindImageMemoryInfoKHR *pBindInfos)
 {
        for (uint32_t i = 0; i < bindInfoCount; ++i) {
                RADV_FROM_HANDLE(radv_device_memory, mem, pBindInfos[i].memory);
@@ -2722,7 +2722,7 @@ VkResult radv_BindImageMemory(
                .memoryOffset = memoryOffset
        };
 
-       return radv_BindImageMemory2KHR(device, 1, &info);
+       return radv_BindImageMemory2(device, 1, &info);
 }
 
 
@@ -4080,7 +4080,7 @@ VkResult radv_GetSemaphoreFdKHR(VkDevice _device,
        return VK_SUCCESS;
 }
 
-void radv_GetPhysicalDeviceExternalSemaphorePropertiesKHR(
+void radv_GetPhysicalDeviceExternalSemaphoreProperties(
        VkPhysicalDevice                            physicalDevice,
        const VkPhysicalDeviceExternalSemaphoreInfoKHR* pExternalSemaphoreInfo,
        VkExternalSemaphorePropertiesKHR*           pExternalSemaphoreProperties)
@@ -4169,7 +4169,7 @@ VkResult radv_GetFenceFdKHR(VkDevice _device,
        return VK_SUCCESS;
 }
 
-void radv_GetPhysicalDeviceExternalFencePropertiesKHR(
+void radv_GetPhysicalDeviceExternalFenceProperties(
        VkPhysicalDevice                            physicalDevice,
        const VkPhysicalDeviceExternalFenceInfoKHR* pExternalFenceInfo,
        VkExternalFencePropertiesKHR*           pExternalFenceProperties)
index 458f05668ae0799ccf6b947aa06cd07332a187d9..ff6a070d4df6050eadfc2b80e66df389e1e230ac 100644 (file)
@@ -31,7 +31,7 @@ import xml.etree.cElementTree as et
 
 from mako.template import Template
 
-MAX_API_VERSION = '1.0.57'
+MAX_API_VERSION = '1.1.0'
 
 class Extension:
     def __init__(self, name, ext_version, enable):
@@ -262,7 +262,7 @@ void radv_fill_device_extension_table(const struct radv_physical_device *device,
 uint32_t
 radv_physical_device_api_version(struct radv_physical_device *dev)
 {
-    return ${MAX_API_VERSION.c_vk_version()};
+    return VK_MAKE_VERSION(1, 0, 68);
 }
 """)
 
index a150f8c64f82b661e810947f56f701616b4ac15c..da341a3a8483d6d35746ce08410e384f842d05a9 100644 (file)
@@ -1026,7 +1026,7 @@ void radv_GetPhysicalDeviceFormatProperties(
                                                   pFormatProperties);
 }
 
-void radv_GetPhysicalDeviceFormatProperties2KHR(
+void radv_GetPhysicalDeviceFormatProperties2(
        VkPhysicalDevice                            physicalDevice,
        VkFormat                                    format,
        VkFormatProperties2KHR*                         pFormatProperties)
@@ -1211,7 +1211,7 @@ get_external_image_format_properties(const VkPhysicalDeviceImageFormatInfo2KHR *
        };
 }
 
-VkResult radv_GetPhysicalDeviceImageFormatProperties2KHR(
+VkResult radv_GetPhysicalDeviceImageFormatProperties2(
        VkPhysicalDevice                            physicalDevice,
        const VkPhysicalDeviceImageFormatInfo2KHR  *base_info,
        VkImageFormatProperties2KHR                *base_props)
@@ -1308,7 +1308,7 @@ void radv_GetPhysicalDeviceSparseImageFormatProperties(
        *pNumProperties = 0;
 }
 
-void radv_GetPhysicalDeviceSparseImageFormatProperties2KHR(
+void radv_GetPhysicalDeviceSparseImageFormatProperties2(
        VkPhysicalDevice                            physicalDevice,
        const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo,
        uint32_t                                   *pPropertyCount,
@@ -1318,7 +1318,7 @@ void radv_GetPhysicalDeviceSparseImageFormatProperties2KHR(
        *pPropertyCount = 0;
 }
 
-void radv_GetPhysicalDeviceExternalBufferPropertiesKHR(
+void radv_GetPhysicalDeviceExternalBufferProperties(
        VkPhysicalDevice                            physicalDevice,
        const VkPhysicalDeviceExternalBufferInfoKHR *pExternalBufferInfo,
        VkExternalBufferPropertiesKHR               *pExternalBufferProperties)