vulkan: remove validation layer configuration from device creation #221

Manually merged
github merged 2 commits from gh-pr/221/head into gh-pr/221/base 2026-11-26 09:13:47 +00:00
Owner

@⁠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 UTC

Problem

When creating the Vulkan device, the code passed the validation layers
(VK_LAYER_KHRONOS_validation) via VkDeviceCreateInfo.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

  • Removed enabledLayerCount / ppEnabledLayerNames from the
    vk::DeviceCreateInfo in src/graphics/presentation/window/vulkanWindow.cpp.
  • The instance-level configuration (where layers belong) is untouched, so
    validation via VK_LAYER_KHRONOS_validation still works.
**@⁠Pouare514** on GitHub · 2026-08-09 12:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/221) `Pouare514:vulkan-fix` → `main` · +0 −4 · 1 files · 2 commits · merged 2026-08-09 21:05 UTC ## Problem When creating the Vulkan device, the code passed the validation layers (`VK_LAYER_KHRONOS_validation`) via `VkDeviceCreateInfo.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 - Removed `enabledLayerCount` / `ppEnabledLayerNames` from the `vk::DeviceCreateInfo` in `src/graphics/presentation/window/vulkanWindow.cpp`. - The instance-level configuration (where layers belong) is untouched, so validation via `VK_LAYER_KHRONOS_validation` still works.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:13:46 +00:00
github manually merged commit a3dfdee817 into gh-pr/221/base 2026-11-26 09:13:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.