| commit | 77ab8055859056bcc37971f33870de8784c6a086 | [log] [tgz] |
|---|---|---|
| author | Jean-François Marquis <jfmarquis@gmail.com> | Mon Oct 30 18:14:15 2017 -0400 |
| committer | Mark Lobodzinski <mark@lunarg.com> | Fri Nov 03 09:19:22 2017 -0600 |
| tree | 19a25e049d1da940fd7120727ada6d4cfe709e43 | |
| parent | f215ee205048d7d93964140974e4e884fa24ae17 [diff] |
layers: Protect GetImage/BufferMemRqmts map access Lock 'global_lock' while looking for IMAGE_STATE/BUFFER_STATE in GetBufferMemoryRequirements/GetImageMemoryRequirements. This is needed because other threads could add/remove other VkImage handles to/from the maps concurrently. The specs say the VkImage must be externally synchronized, but this doesn't cover the internals of the layers about VkImages in general. vkCreateImage, vkDestroyImage and vkBindImageMemory/vkBindBufferMemory correctly lock 'global_lock'. Change-Id: I93cb00c9a7f99efc927da52e42103ab72516397e
This project provides Khronos official ICD loader and validation layers for Vulkan developers on Windows and Linux.
| Platform | Build Status |
|---|---|
| Linux/Android | |
| Windows |
Vulkan is an Explicit API, enabling direct control over how GPUs actually work. No (or very little) validation or error checking is done inside a Vulkan driver. Applications have full control and responsibility. Any errors in how Vulkan is used often result in a crash. This project provides standard validation layers that can be enabled to ease development by helping developers verify their applications correctly use the Vulkan API.
Vulkan supports multiple GPUs and multiple global contexts (VkInstance). The ICD loader is necessary to support multiple GPUs and the VkInstance level Vulkan commands. Additionally, the loader manages inserting Vulkan layer libraries, including validation layers between the application and the ICD.
The following components are available in this repository:
If you intend to contribute, the preferred work flow is for you to develop your contribution in a fork of this repo in your GitHub account and then submit a pull request. Please see the CONTRIBUTING file in this repository for more details
BUILD.md includes directions for building all the components, running the validation tests and running the demo applications.
Information on how to enable the various Validation layers is in layers/README.md.
Architecture and interface information for the loader is in loader/LoaderAndLayerInterface.md.
This work is released as open source under a Apache-style license from Khronos including a Khronos copyright.
See COPYRIGHT.txt for a full list of licenses used in this repository.
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; Google providing significant contributions to the validation layers; Khronos providing oversight and hosting of the project.