aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenny Komow <lenny@lunarg.com>2017-10-11 09:25:19 -0600
committerMike Schuchardt <mikes@lunarg.com>2018-03-09 13:54:31 -0700
commit9cd79582bcfb499dcfbf839427983a97c537cd8e (patch)
tree101915923b78639954cecdcda017524ac62ab5e5
parent1b5e6eb71b9e1b39f492402d2a891f8430d45236 (diff)
downloadusermoji-9cd79582bcfb499dcfbf839427983a97c537cd8e.tar.xz
loader: Remove version check from vkCreateInstance
-rw-r--r--loader/trampoline.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/loader/trampoline.c b/loader/trampoline.c
index 8236c8aa..58fcf776 100644
--- a/loader/trampoline.c
+++ b/loader/trampoline.c
@@ -281,22 +281,6 @@ LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance(const VkInstanceCr
LOADER_PLATFORM_THREAD_ONCE(&once_init, loader_initialize);
- // Fail if the requested Vulkan apiVersion is > 1.0 since the loader only supports 1.0.
- // Having pCreateInfo == NULL, pCreateInfo->pApplication == NULL, or
- // pCreateInfo->pApplicationInfo->apiVersion == 0 all indicate that the application is
- // only requesting a 1.0 instance, which this loader will always support.
- uint32_t loader_major_version = 1;
- uint32_t loader_minor_version = 0;
- if (NULL != pCreateInfo && NULL != pCreateInfo->pApplicationInfo &&
- pCreateInfo->pApplicationInfo->apiVersion >= VK_MAKE_VERSION(loader_major_version, loader_minor_version + 1, 0)) {
- loader_log(ptr_instance, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
- "vkCreateInstance: Called with invalid API version %d.%d. Loader only supports %d.%d",
- VK_VERSION_MAJOR(pCreateInfo->pApplicationInfo->apiVersion),
- VK_VERSION_MINOR(pCreateInfo->pApplicationInfo->apiVersion), loader_major_version, loader_minor_version);
- res = VK_ERROR_INCOMPATIBLE_DRIVER;
- goto out;
- }
-
#if (DEBUG_DISABLE_APP_ALLOCATORS == 1)
{
#else