KhronosGroup / Vulkan-Loader

Vulkan Loader
https://vulkan.lunarg.com/doc/sdk/latest/linux/LoaderInterfaceArchitecture.html
Other
520 stars 283 forks source link

Vulkan Loader settings log inconsistency #1594

Open christophe-lunarg opened 1 week ago

christophe-lunarg commented 1 week ago

I would expect to be able to control logging with VK_LOADER_DEBUG=all when not using the stderr_log section in vk_loader_settings.json, a bit like I can control layers with VK_LOADER_LAYERS_ENABLE when there are not in vk_loader_settings.json.

However, when using the Vulkan Loader settings WITHOUT "stderr_log" section but using VK_LOADER_DEBUG=all I am getting the following log which is pretty short: vk_loader_settings.json

INFO:              Using Vulkan Loader E:\VulkanSDK\1.3.296.0\Bin\vulkan-1.dll
INFO:              Vulkan Loader Version 1.3.301
INFO:              [Vulkan Loader Git - Tag: loader-vkconfig3, Branch/Commit: v1.3.301-13-g8a1139b63]
INFO:              Using layer configurations found in loader settings from C:\Users\Piranha\AppData\Local\LunarG\vulkan\vk_loader_settings.json
DEBUG:             Layer Configurations count = 13
DEBUG:             ---- Layer Configuration [0] ----
DEBUG:             Name: VK_LAYER_NV_optimus
DEBUG:             Path: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [1] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_fossilize
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [2] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_overlay
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json
DEBUG:             Control: auto

DEBUG:             ---- Layer Configuration [3] ----
DEBUG:             Control: unordered_layer_location
DEBUG:             ---- Layer Configuration [4] ----
DEBUG:             Name: VK_LAYER_LUNARG_api_dump
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [5] ----
DEBUG:             Name: VK_LAYER_LUNARG_crash_diagnostic
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [6] ----
DEBUG:             Name: VK_LAYER_LUNARG_gfxreconstruct
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [7] ----
DEBUG:             Name: VK_LAYER_LUNARG_monitor
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [8] ----
DEBUG:             Name: VK_LAYER_LUNARG_screenshot
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [9] ----
DEBUG:             Name: VK_LAYER_KHRONOS_validation
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [10] ----
DEBUG:             Name: VK_LAYER_KHRONOS_profiles
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json
DEBUG:             Control: on
DEBUG:             ---- Layer Configuration [11] ----
DEBUG:             Name: VK_LAYER_KHRONOS_shader_object
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [12] ----
DEBUG:             Name: VK_LAYER_KHRONOS_synchronization2
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json
DEBUG:             Control: auto
DEBUG:             ---------------------------------

vk_loader_settings.json When using stderr_log with all the log type I am getting a very exhautive log:

INFO:              Using Vulkan Loader E:\VulkanSDK\1.3.296.0\Bin\vulkan-1.dll
INFO:              Vulkan Loader Version 1.3.301
INFO:              [Vulkan Loader Git - Tag: loader-vkconfig3, Branch/Commit: v1.3.301-13-g8a1139b63]
INFO:              Using layer configurations found in loader settings from C:\Users\Piranha\AppData\Local\LunarG\vulkan\vk_loader_settings.json
DEBUG:             Layer Configurations count = 13
DEBUG:             ---- Layer Configuration [0] ----
DEBUG:             Name: VK_LAYER_NV_optimus
DEBUG:             Path: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [1] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_fossilize
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [2] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_overlay
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [3] ----
DEBUG:             Control: unordered_layer_location
DEBUG:             ---- Layer Configuration [4] ----
DEBUG:             Name: VK_LAYER_LUNARG_api_dump
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [5] ----
DEBUG:             Name: VK_LAYER_LUNARG_crash_diagnostic
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [6] ----
DEBUG:             Name: VK_LAYER_LUNARG_gfxreconstruct
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [7] ----
DEBUG:             Name: VK_LAYER_LUNARG_monitor
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [8] ----
DEBUG:             Name: VK_LAYER_LUNARG_screenshot
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [9] ----
DEBUG:             Name: VK_LAYER_KHRONOS_validation
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [10] ----
DEBUG:             Name: VK_LAYER_KHRONOS_profiles
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json
DEBUG:             Control: on
DEBUG:             ---- Layer Configuration [11] ----
DEBUG:             Name: VK_LAYER_KHRONOS_shader_object
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [12] ----
DEBUG:             Name: VK_LAYER_KHRONOS_synchronization2
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json
DEBUG:             Control: auto
DEBUG:             ---------------------------------
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json (file version 1.2.1)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json (file version 1.2.0)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
LAYER:             Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files\RenderDoc\renderdoc.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files\RenderDoc\renderdoc.json (file version 1.1.2)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
DRIVER:            Checking for Driver Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json" from PnP registry: E
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
DRIVER:            Found no registry files in HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\igvk64.dll
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\nvoglv64.dll

INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
DRIVER:            Checking for Driver Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json" from PnP registry: E
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
DRIVER:            Found no registry files in HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\igvk64.dll
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\nvoglv64.dll
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json (file version 1.2.1)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json (file version 1.2.0)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
LAYER:             Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files\RenderDoc\renderdoc.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files\RenderDoc\renderdoc.json (file version 1.1.2)
INFO:              Using layer configurations found in loader settings from C:\Users\Piranha\AppData\Local\LunarG\vulkan\vk_loader_settings.json
DEBUG:             Layer Configurations count = 13
DEBUG:             ---- Layer Configuration [0] ----
DEBUG:             Name: VK_LAYER_NV_optimus
DEBUG:             Path: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [1] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_fossilize
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [2] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_overlay
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [3] ----
DEBUG:             Control: unordered_layer_location
DEBUG:             ---- Layer Configuration [4] ----
DEBUG:             Name: VK_LAYER_LUNARG_api_dump
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [5] ----
DEBUG:             Name: VK_LAYER_LUNARG_crash_diagnostic
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [6] ----
DEBUG:             Name: VK_LAYER_LUNARG_gfxreconstruct
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [7] ----
DEBUG:             Name: VK_LAYER_LUNARG_monitor
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [8] ----
DEBUG:             Name: VK_LAYER_LUNARG_screenshot
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [9] ----
DEBUG:             Name: VK_LAYER_KHRONOS_validation
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [10] ----
DEBUG:             Name: VK_LAYER_KHRONOS_profiles
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json
DEBUG:             Control: on
DEBUG:             ---- Layer Configuration [11] ----
DEBUG:             Name: VK_LAYER_KHRONOS_shader_object
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [12] ----
DEBUG:             Name: VK_LAYER_KHRONOS_synchronization2
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json
DEBUG:             Control: auto
DEBUG:             ---------------------------------
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json (file version 1.2.1)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json (file version 1.2.0)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
LAYER:             Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files\RenderDoc\renderdoc.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files\RenderDoc\renderdoc.json (file version 1.1.2)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
DRIVER:            Checking for Driver Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json" from PnP registry: E
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
DRIVER:            Found no registry files in HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\igvk64.dll
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\nvoglv64.dll
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json (file version 1.2.1)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json (file version 1.2.0)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
LAYER:             Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files\RenderDoc\renderdoc.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files\RenderDoc\renderdoc.json (file version 1.1.2)
INFO:              Using layer configurations found in loader settings from C:\Users\Piranha\AppData\Local\LunarG\vulkan\vk_loader_settings.json
DEBUG:             Layer Configurations count = 13
DEBUG:             ---- Layer Configuration [0] ----
DEBUG:             Name: VK_LAYER_NV_optimus
DEBUG:             Path: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [1] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_fossilize
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [2] ----
DEBUG:             Name: VK_LAYER_VALVE_steam_overlay
DEBUG:             Path: C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [3] ----
DEBUG:             Control: unordered_layer_location
DEBUG:             ---- Layer Configuration [4] ----
DEBUG:             Name: VK_LAYER_LUNARG_api_dump
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [5] ----
DEBUG:             Name: VK_LAYER_LUNARG_crash_diagnostic
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [6] ----
DEBUG:             Name: VK_LAYER_LUNARG_gfxreconstruct
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [7] ----
DEBUG:             Name: VK_LAYER_LUNARG_monitor
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [8] ----
DEBUG:             Name: VK_LAYER_LUNARG_screenshot
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [9] ----
DEBUG:             Name: VK_LAYER_KHRONOS_validation
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [10] ----
DEBUG:             Name: VK_LAYER_KHRONOS_profiles
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json
DEBUG:             Control: on
DEBUG:             ---- Layer Configuration [11] ----
DEBUG:             Name: VK_LAYER_KHRONOS_shader_object
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json
DEBUG:             Control: auto
DEBUG:             ---- Layer Configuration [12] ----
DEBUG:             Name: VK_LAYER_KHRONOS_synchronization2
DEBUG:             Path: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json
DEBUG:             Control: auto
DEBUG:             ---------------------------------
INFO:              Portability enumeration bit was set, enumerating portability drivers.
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json (file version 1.2.0)

INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json (file version 1.2.1)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json (file version 1.2.0)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
LAYER:             Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO | LAYER:      Located json file "C:\Program Files\RenderDoc\renderdoc.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers"
INFO:              Found manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamOverlayVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files (x86)\Steam\SteamFossilizeVulkanLayer64.json (file version 1.0.0)
INFO:              Found manifest file C:\Program Files\RenderDoc\renderdoc.json (file version 1.1.2)
LAYER:             Checking for Layer Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers
INFO | LAYER:      windows_get_device_registry_files: opening device PCI\VEN_8086&DEV_56A1&SUBSYS_10218086&REV_08\6&2f01f1ad&0&0008001A
INFO | DRIVER:     windows_get_device_registry_entry: Device ID(2) Does not contain a value for "VulkanExplicitLayers"
INFO | LAYER:      windows_get_device_registry_files: Opening child device 4 - SWD\DRIVERENUM\IGCC&7&31DF77D0&1
INFO | DRIVER:     windows_get_device_registry_entry: Device ID(4) Does not contain a value for "VulkanExplicitLayers"
INFO | LAYER:      windows_get_device_registry_files: Opening child device 5 - DISPLAY\INTC_HECI_2\7&31DF77D0&1&UID60434
DEBUG | LAYER:     windows_get_device_registry_files: GUID for 5 is not SoftwareComponent skipping
INFO | LAYER:      windows_get_device_registry_files: Opening child device 6 - DISPLAY\INTC_CTA\7&31DF77D0&1&UID26041
DEBUG | LAYER:     windows_get_device_registry_files: GUID for 6 is not SoftwareComponent skipping
INFO | LAYER:      windows_get_device_registry_files: Opening child device 7 - DISPLAY\GSM7707\7&31DF77D0&1&UID20545
DEBUG | LAYER:     windows_get_device_registry_files: GUID for 7 is not SoftwareComponent skipping
INFO | LAYER:      windows_get_device_registry_files: opening device PCI\VEN_10DE&DEV_2208&SUBSYS_88021043&REV_A1\4&31ac7a68&0&0019
INFO | DRIVER:     windows_get_device_registry_entry: Device ID(3) Does not contain a value for "VulkanExplicitLayers"
INFO | LAYER:      windows_get_device_registry_files: Opening child device 8 - DISPLAY\GSM7707\5&1D83BE85&1&UID45318
DEBUG | LAYER:     windows_get_device_registry_files: GUID for 8 is not SoftwareComponent skipping
LAYER:             windows_get_device_registry_files: found no registry files
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO | LAYER:      Located json file "E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json" from registry "HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers"
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_api_dump.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_gfxreconstruct.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_synchronization2.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_monitor.json (file version 1.0.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_screenshot.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json (file version 1.2.1)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_shader_object.json (file version 1.2.0)
INFO:              Found manifest file E:\VulkanSDK\1.3.296.0\Bin\VkLayer_crash_diagnostic.json (file version 1.2.0)
INFO:              windows_get_app_package_manifest_path: Failed to find mapping layers packages by family name
DRIVER:            Checking for Driver Manifest files in Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json" from PnP registry: E
INFO:              windows_add_json_entry: Located json file "C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json" from PnP registry: E
DRIVER:            Found no registry files in HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_dcdc48ad59d39fcd\igvk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\igvk64.dll
DRIVER:            Found ICD manifest file C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json, version 1.0.0
DEBUG | DRIVER:    Searching for ICD drivers named .\nvoglv64.dll
DEBUG | LAYER:     Loading layer library E:\VulkanSDK\1.3.296.0\Bin\.\VkLayer_khronos_profiles.dll
INFO | LAYER:      Insert instance layer "VK_LAYER_KHRONOS_profiles" (E:\VulkanSDK\1.3.296.0\Bin\.\VkLayer_khronos_profiles.dll)
DEBUG | LAYER:     Loading layer library E:\VulkanSDK\1.3.296.0\Bin\.\VkLayer_khronos_validation.dll
INFO | LAYER:      Insert instance layer "VK_LAYER_KHRONOS_validation" (E:\VulkanSDK\1.3.296.0\Bin\.\VkLayer_khronos_validation.dll)
DEBUG | LAYER:     Loading layer library C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\.\nvoglv64.dll
INFO | LAYER:      Insert instance layer "VK_LAYER_NV_optimus" (C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\.\nvoglv64.dll)
LAYER:             vkCreateInstance layer callstack setup to:
LAYER:                <Application>
LAYER:                  ||
LAYER:                <Loader>
LAYER:                  ||
LAYER:                VK_LAYER_NV_optimus
LAYER:                        Type: Implicit
LAYER:                            Disable Env Var:  DISABLE_LAYER_NV_OPTIMUS_1
LAYER:                        Manifest: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\nv-vk64.json
LAYER:                        Library:  C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_02bdcff75475bcf9\.\nvoglv64.dll
LAYER:                  ||
LAYER:                VK_LAYER_KHRONOS_validation
LAYER:                        Type: Explicit
LAYER:                        Manifest: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_validation.json
LAYER:                        Library:  E:\VulkanSDK\1.3.296.0\Bin\.\VkLayer_khronos_validation.dll
LAYER:                  ||
LAYER:                VK_LAYER_KHRONOS_profiles
LAYER:                        Type: Explicit
LAYER:                        Manifest: E:\VulkanSDK\1.3.296.0\Bin\VkLayer_khronos_profiles.json
LAYER:                        Library:  E:\VulkanSDK\1.3.296.0\Bin\.\VkLayer_khronos_profiles.dll
LAYER:                  ||
LAYER:                <Drivers>
charles-lunarg commented 1 week ago

Yep, this is an oversight in the implementation. When the loader settings file doesn't have a stderr_log field, the "debug_level" is left at the default zero value. Buuut when logging the loader would not bother checking VK_LOADER_DEBUG at all if the settings file was active, irregardless of the settings. It is a simple one line fix to make the log function require that the settings file debug level is 'non-zero' (set to something) before using that as the filter. (and the fix will be pushed up in the extended_loader_settings_tests branch shortly)

charles-lunarg commented 1 week ago

I do think it may be beneficial to have the log messages be filtered by the union of the VK_LOADER_DEBUG and loader settings file stderr_log output. The current logic means that a user who opened vkconfig & set some filters may not know that those filters are what will be used. They then may try to set VK_LOADER_DEBUG and see no change in behavior. This is more of an edge case & learning curve than a pure problem. But I raise it to get your opinion.

christophe-lunarg commented 1 week ago

Yep, this is an oversight in the implementation. When the loader settings file doesn't have a stderr_log field, the "debug_level" is left at the default zero value. Buuut when logging the loader would not bother checking VK_LOADER_DEBUG at all if the settings file was active, irregardless of the settings. It is a simple one line fix to make the log function require that the settings file debug level is 'non-zero' (set to something) before using that as the filter. (and the fix will be pushed up in the extended_loader_settings_tests branch shortly)

I think this is plently already, no need to have a union mode specifcally because I don't think "The current logic means that a user who opened vkconfig & set some filters may not know that those filters are what will be used. They then may try to set VK_LOADER_DEBUG and see no change in behavior." is true. If the user know about VK_LOADER_DEBUG, the user will know about Vulkan Configurator equivalent as it's really a direct mapping.

And a union would imply that if VK_LOADER_DEBUG is set to all and the user want to disable the loader message maybe to have a shorter log to find something specific, that use case won't work.

If you add something that enables to switch between both mode in vk_loader_settings.json, then why not,

christophe-lunarg commented 1 week ago

This issue still reproduce with today build of Vulkan Loader main branch