summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-05-01 22:46:41 +0200
committerBas Nieuwenhuizen <[email protected]>2018-05-02 21:57:08 +0200
commitffa15861ef7c924a33e1f2e75982c7648059979a (patch)
treefdd5f24ee733c2687ddc5112c5075dbcad8a136a
parent467c562a292b4424f24381932b90bcb9869c3d73 (diff)
radv: UseEnumerateInstanceVersion for the default version.
Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r--src/amd/vulkan/radv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index ed1c35334ba..9fe415c4e05 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -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,