loader: Add validation for apiVersion
authorMark Young <marky@lunarg.com>
Wed, 19 Apr 2017 01:52:18 +0000 (19:52 -0600)
committerMark Young <marky@lunarg.com>
Thu, 29 Jun 2017 17:08:04 +0000 (11:08 -0600)
commit845b2c663757a9030ae108dc76602cc57495f1cc
tree31579404fe02247ada551f36acd932ae754b18b3
parentfa01b79b1a57dbd77163f48f4992c6dbd0ccd264
loader: Add validation for apiVersion

Add a check to determine if the API version being requested can be
handled by the loader.  If it can't, then we return incompatible driver.
If we can, we continue along our merry way.

An addendum is that we also bumped the Loader/ICD interface version.
This was requested by Nvidia so that the ICDs know that we pay attention
to the version in the loader.  If they don't see the new Loader/ICD
interface version, they will handle the failing on all non-1.0 API
requests.

Change-Id: Icb7dd45e754c9f6a6c8186198333bacc68077b93
include/vulkan/vk_icd.h
loader/LoaderAndLayerInterface.md
loader/loader.c
loader/loader.h
loader/trampoline.c