radv: UseEnumerateInstanceVersion for the default version.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 1 May 2018 20:46:41 +0000 (22:46 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 2 May 2018 19:57:08 +0000 (21:57 +0200)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index ed1c35334ba9956e3990d9695c8b191620430fee..9fe415c4e05c39283b60073c08fb7d2296fe176d 100644 (file)
@@ -460,7 +460,7 @@ VkResult radv_CreateInstance(
            pCreateInfo->pApplicationInfo->apiVersion != 0) {
                client_version = pCreateInfo->pApplicationInfo->apiVersion;
        } else {
-               client_version = VK_MAKE_VERSION(1, 0, 0);
+               radv_EnumerateInstanceVersion(&client_version);
        }
 
        instance = vk_zalloc2(&default_alloc, pAllocator, sizeof(*instance), 8,