From: Samuel Pitoiset Date: Tue, 26 Nov 2019 08:59:27 +0000 (+0100) Subject: radv: update VK_KHR_buffer_device_address for Vulkan 1.2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2be00fbc176a0b93393c8ae2ba85f6357c350a7;p=mesa.git radv: update VK_KHR_buffer_device_address 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_device.c b/src/amd/vulkan/radv_device.c index 76e191a93a8..57b26727a78 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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; }