Skip to content

Conversation

@charles-lunarg
Copy link
Collaborator

When there exists a layer in the settings file with the same name as a layer in the default search paths with a different library_path, the loader was mistaking it as a 'distinct' layer. Because the settings file allows specifying layers by their path & whether to enable/disable them, it is possible to exactly specify which layers will load, including duplicates.

When there exists a layer in the settings file with the same name as a
layer in the default search paths with a different library_path, the
loader was mistaking it as a 'distinct' layer. Because the settings file
allows specifying layers by their path & whether to enable/disable them,
it is possible to exactly specify which layers will load, including
duplicates.
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 598679.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 598696.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 3329 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 3329 passed.

@christophe-lunarg christophe-lunarg self-requested a review December 11, 2025 08:51
@christophe-lunarg
Copy link
Contributor

The issue is fixed with this PR:

==========
VULKANINFO
==========

Vulkan Instance Version: 1.4.336


Instance Extensions: count = 16
-------------------------------
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_surface_maintenance1            : extension revision 1
VK_EXT_swapchain_colorspace            : extension revision 5
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_win32_surface                   : extension revision 6
VK_LUNARG_direct_driver_loading        : extension revision 1
VK_NV_external_memory_capabilities     : extension revision 1

Instance Layers: count = 15
---------------------------
VK_LAYER_AMD_switchable_graphics  AMD switchable graphics layer                                                                                     1.4.315  version 1
VK_LAYER_KHRONOS_profiles         Khronos Profiles layer                                                                                            1.4.335  version 1
VK_LAYER_KHRONOS_shader_object    Khronos Shader object layer                                                                                       1.4.335  version 1
VK_LAYER_KHRONOS_synchronization2 Khronos Synchronization2 layer                                                                                    1.4.335  version 1
VK_LAYER_KHRONOS_validation       Khronos Validation Layer                                                                                          1.4.335  version 1
VK_LAYER_LUNARG_api_dump          LunarG API dump layer                                                                                             1.4.335  version 2
VK_LAYER_LUNARG_crash_diagnostic  Crash Diagnostic Layer is a crash/hang debugging tool that helps determines GPU progress in a Vulkan application. 1.4.335  version 1
VK_LAYER_LUNARG_gfxreconstruct    GFXReconstruct Capture Layer Version 1.0.5                                                                        1.4.335  version 4194309
VK_LAYER_LUNARG_monitor           Execution Monitoring Layer                                                                                        1.4.335  version 1
VK_LAYER_LUNARG_screenshot        LunarG image capture layer                                                                                        1.4.335  version 1
VK_LAYER_NV_optimus               NVIDIA Optimus layer                                                                                              1.4.312  version 1
VK_LAYER_NV_present               NVIDIA GR2608 layer                                                                                               1.4.312  version 1
VK_LAYER_RENDERDOC_Capture        Debugging capture layer for RenderDoc                                                                             1.4.324  version 41
VK_LAYER_VALVE_steam_fossilize    Steam Pipeline Caching Layer                                                                                      1.3.207  version 1
VK_LAYER_VALVE_steam_overlay      Steam Overlay Layer                                                                                               1.3.207  version 1

@charles-lunarg charles-lunarg merged commit bf546ec into KhronosGroup:main Dec 15, 2025
45 checks passed
@charles-lunarg charles-lunarg deleted the prevent_default_layers_from_being_duplicates_of_settings_layers branch December 15, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants