loader: Add validation for apiVersion
authorMark Young <marky@lunarg.com>
Wed, 19 Apr 2017 01:52:18 +0000 (19:52 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 4 May 2018 15:23:50 +0000 (09:23 -0600)
commitc253f7b76005303008e5723bbf6a6fb8a7840efb
tree5880b9072f68011c1a8b4b0f45b397a8865428fb
parent1e7d756b7ddc5d58acf7f08c9cd547357de339c2
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