radv: rename radv_devices() to radv_enumerate_physical_devices()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Apr 2020 09:56:50 +0000 (11:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:44:20 +0000 (06:44 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4806>

src/amd/vulkan/radv_device.c

index e8bdc4d76c137551130398f409598240b120110b..118f8f2b32ad26ebd7cf871081cf082450b75735 100644 (file)
@@ -740,7 +740,7 @@ void radv_DestroyInstance(
 }
 
 static VkResult
-radv_enumerate_devices(struct radv_instance *instance)
+radv_enumerate_physical_devices(struct radv_instance *instance)
 {
        /* TODO: Check for more devices ? */
        drmDevicePtr devices[8];
@@ -799,7 +799,7 @@ VkResult radv_EnumeratePhysicalDevices(
        VkResult result;
 
        if (instance->physicalDeviceCount < 0) {
-               result = radv_enumerate_devices(instance);
+               result = radv_enumerate_physical_devices(instance);
                if (result != VK_SUCCESS &&
                    result != VK_ERROR_INCOMPATIBLE_DRIVER)
                        return result;
@@ -826,7 +826,7 @@ VkResult radv_EnumeratePhysicalDeviceGroups(
        VkResult result;
 
        if (instance->physicalDeviceCount < 0) {
-               result = radv_enumerate_devices(instance);
+               result = radv_enumerate_physical_devices(instance);
                if (result != VK_SUCCESS &&
                    result != VK_ERROR_INCOMPATIBLE_DRIVER)
                        return result;