vulkan: remove validation layer configuration from device creation #221
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!221
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/221/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Pouare514 on GitHub · 2026-08-09 12:57 UTC · original
Pouare514:vulkan-fix→main· +0 −4 · 1 files · 2 commits · merged 2026-08-09 21:05 UTCProblem
When creating the Vulkan device, the code passed the validation layers
(
VK_LAYER_KHRONOS_validation) viaVkDeviceCreateInfo.enabledLayerCount/ppEnabledLayerNames.Device layers have never been supported since Vulkan 1.0 — layers must be
enabled at instance level only. This triggered a validation error:
vkCreateDevice(): pCreateInfo->enabledLayerCount is 1 (not zero).
The Vulkan spec states: enabledLayerCount must be 0
(VUID-VkDeviceCreateInfo-enabledLayerCount-12384)
Changes
enabledLayerCount/ppEnabledLayerNamesfrom thevk::DeviceCreateInfoinsrc/graphics/presentation/window/vulkanWindow.cpp.validation via
VK_LAYER_KHRONOS_validationstill works.