From: Konstantin Seurer Date: Thu, 22 Dec 2022 21:35:59 +0000 (+0100) Subject: radv: Use common vkEnumerateDeviceLayerProperties X-Git-Tag: upstream/23.3.3~15210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb2576902d9f5b068f4cac308c64942344fcb2dd;p=platform%2Fupstream%2Fmesa.git radv: Use common vkEnumerateDeviceLayerProperties Part-of: --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 58774d0..ed4c293 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -4132,19 +4132,6 @@ radv_EnumerateInstanceLayerProperties(uint32_t *pPropertyCount, VkLayerPropertie return vk_error(NULL, VK_ERROR_LAYER_NOT_PRESENT); } -VKAPI_ATTR VkResult VKAPI_CALL -radv_EnumerateDeviceLayerProperties(VkPhysicalDevice physicalDevice, uint32_t *pPropertyCount, - VkLayerProperties *pProperties) -{ - if (pProperties == NULL) { - *pPropertyCount = 0; - return VK_SUCCESS; - } - - /* None supported at this time */ - return vk_error(NULL, VK_ERROR_LAYER_NOT_PRESENT); -} - static void radv_fill_shader_rings(struct radv_device *device, uint32_t *map, bool add_sample_positions, uint32_t esgs_ring_size, struct radeon_winsys_bo *esgs_ring_bo,