commit | fe8479aa022a011d74fd862749825e07891e854e | [log] [tgz] |
---|---|---|
author | Charles Giessen <charles@lunarg.com> | Wed Nov 17 14:44:11 2021 -0700 |
committer | Charles Giessen <charles@lunarg.com> | Wed Nov 17 15:28:51 2021 -0700 |
tree | 909c6197d7945abdb65cc0dcfbcdb5011482257f | |
parent | 4f78f14c0533303c829edf1caf4e5f77bec0b3c4 [diff] |
Dont call ToolProps on drivers without support The loader recently added support for calling into drivers in vkGetPhysicalDeviceToolPropertieesEXT. However, it only used the value of the function pointer to determine if it was safe. It was found that Mesa drivers will return a non-null function pointer, even though they do not support the extension, and so the loader called this function pointer which would then segfault. The loader prevents this by first checking if the extension is supported by the physical device. This necessitates calling vkEnumerateDeviceExtensionProperties and allocating some memory on each call but since the number of times this function is called should be low, it is not an undue performance burden. In the future, the loader should cache the list of extensions when calling vkEnumeratePhysicalDevices so that checking if a extension function is supported is fast and easy.
This project provides the Khronos official Vulkan ICD desktop loader for Windows, Linux, and MacOS.
Vulkan is an explicit API, enabling direct control over how GPUs actually work. As such, Vulkan supports systems that have multiple GPUs, each running with a different driver, or ICD (Installable Client Driver). Vulkan also supports multiple global contexts (instances, in Vulkan terminology). The ICD loader is a library that is placed between a Vulkan application and any number of Vulkan drivers, in order to support multiple drivers and the instance-level functionality that works across these drivers. Additionally, the loader manages inserting Vulkan layer libraries, such as validation layers, between an application and the drivers.
This repository contains the Vulkan loader that is used for Linux, Windows, MacOS, and iOS. There is also a separate loader, maintained by Google, which is used on Android.
The following components are available in this repository:
Please see the CONTRIBUTING.md file in this repository for more details. Please see the GOVERNANCE.md file in this repository for repository management details.
BUILD.md Includes directions for building all components.
Architecture and interface information for the loader is in docs/LoaderInterfaceArchitecture.md.
Updates to the Vulkan-Loader
repository which correspond to a new Vulkan specification release are tagged using the following format: v<
version
>
(e.g., v1.1.96
).
Note: Marked version releases have undergone thorough testing but do not imply the same quality level as SDK tags. SDK tags follow the sdk-<
version
>.<
patch
>
format (e.g., sdk-1.1.92.0
).
This scheme was adopted following the 1.1.96 Vulkan specification release.
This work is released as open source under a Apache-style license from Khronos including a Khronos copyright.
While this project has been developed primarily by LunarG, Inc., there are many other companies and individuals making this possible: Valve Corporation, funding project development; Khronos providing oversight and hosting of the project.