radv: update VK_KHR_buffer_device_address for Vulkan 1.2
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Nov 2019 08:59:27 +0000 (09:59 +0100)
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_device.c

index 76e191a93a876b169fcbd800e7d40561c1b4c5fb..57b26727a780b98df63f796b58b39256541d4354 100644 (file)
@@ -1064,9 +1064,9 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->bufferDeviceAddressMultiDevice = false;
                        break;
                }
-               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_KHR: {
-                       VkPhysicalDeviceBufferDeviceAddressFeaturesKHR *features =
-                               (VkPhysicalDeviceBufferDeviceAddressFeaturesKHR *)ext;
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES: {
+                       VkPhysicalDeviceBufferDeviceAddressFeatures *features =
+                               (VkPhysicalDeviceBufferDeviceAddressFeatures *)ext;
                        features->bufferDeviceAddress = true;
                        features->bufferDeviceAddressCaptureReplay = false;
                        features->bufferDeviceAddressMultiDevice = false;
@@ -5948,23 +5948,23 @@ void radv_DestroyBuffer(
        vk_free2(&device->alloc, pAllocator, buffer);
 }
 
-VkDeviceAddress radv_GetBufferDeviceAddressKHR(
+VkDeviceAddress radv_GetBufferDeviceAddress(
        VkDevice                                    device,
-       const VkBufferDeviceAddressInfoKHR*         pInfo)
+       const VkBufferDeviceAddressInfo*         pInfo)
 {
        RADV_FROM_HANDLE(radv_buffer, buffer, pInfo->buffer);
        return radv_buffer_get_va(buffer->bo) + buffer->offset;
 }
 
 
-uint64_t radv_GetBufferOpaqueCaptureAddressKHR(VkDevice device,
-                                              const VkBufferDeviceAddressInfoKHR* pInfo)
+uint64_t radv_GetBufferOpaqueCaptureAddress(VkDevice device,
+                                           const VkBufferDeviceAddressInfo* pInfo)
 {
        return 0;
 }
 
-uint64_t radv_GetDeviceMemoryOpaqueCaptureAddressKHR(VkDevice device,
-                                                    const VkDeviceMemoryOpaqueCaptureAddressInfoKHR* pInfo)
+uint64_t radv_GetDeviceMemoryOpaqueCaptureAddress(VkDevice device,
+                                                 const VkDeviceMemoryOpaqueCaptureAddressInfo* pInfo)
 {
        return 0;
 }