diff options
| author | Mark Young <marky@lunarg.com> | 2017-04-18 19:52:18 -0600 |
|---|---|---|
| committer | Mark Young <marky@lunarg.com> | 2017-06-29 11:08:04 -0600 |
| commit | 845b2c663757a9030ae108dc76602cc57495f1cc (patch) | |
| tree | 31579404fe02247ada551f36acd932ae754b18b3 /loader/loader.h | |
| parent | fa01b79b1a57dbd77163f48f4992c6dbd0ccd264 (diff) | |
| download | usermoji-845b2c663757a9030ae108dc76602cc57495f1cc.tar.xz | |
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
Diffstat (limited to 'loader/loader.h')
| -rw-r--r-- | loader/loader.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/loader/loader.h b/loader/loader.h index 2c65923d..3a80657d 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -48,9 +48,6 @@ #define DEBUG_DISABLE_APP_ALLOCATORS 0 #define MAX_STRING_SIZE 1024 -#define VK_MAJOR(version) (version >> 22) -#define VK_MINOR(version) ((version >> 12) & 0x3ff) -#define VK_PATCH(version) (version & 0xfff) // This is defined in vk_layer.h, but if there's problems we need to create the define // here. |
