layers: Set up QUEUE_STATE when getting device queue

A previous change (
makes state tracker only set up the queue state objects on
vkCreateDevice() instead of on each vkGetDeviceQueue() call.
However, this breaks some devices (e.g. goldfish-vulkan virtual
ICD which is used for Android and Fuchsia emulator) where it
could possibly return different queue handles on vkGetDeviceQueue().

In order to handle this case, state tracker should still try to
update the queue map on each vkGetDeviceQueue() call.

TEST: vkreadback (on Fuchsia emulator)
Change-Id: Ib7a3f3b9808b5a7067bbcf0d1d97f7d7869dfd84
2 files changed
tree: f564249d8f453b42be388c59b64fd2d92a019e3e
  1. .github/
  2. build-android/
  3. build-gn/
  4. cmake/
  5. docs/
  6. layers/
  7. scripts/
  8. tests/
  9. .clang-format
  10. .clang-tidy
  11. .gitattributes
  12. .gitignore
  13. .gn
  16. CMakeLists.txt
  21. LICENSE.txt
  22. OWNERS
  23. README.fuchsia

Vulkan Ecosystem Components

This project provides the Khronos official Vulkan validation layers for Windows, Linux, Android, and MacOS.

CI Build Status

Build Status
Build Status
Build Status
Build Status
Build Status


Vulkan is an Explicit API, enabling direct control over how GPUs actually work. By design, minimal error checking is done inside a Vulkan driver. Applications have full control and responsibility for correct operation. Any errors in how Vulkan is used can result in a crash. This project provides Vulkan validation layers that can be enabled to assist development by enabling developers to verify their applications correct use of the Vulkan API.

The following components are available in this repository:

Contact Information

Information for Developing or Contributing:

Please see the file in this repository for more details. Please see the file in this repository for repository management details.

How to Build and Run Includes directions for building all components as well as running validation tests.

Information on how to enable the various Validation layers is in

Version Tagging Scheme

Updates to the Vulkan-ValidationLayers 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-

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.

See LICENSE.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.