Skip to content

loader: Log VkInstanceCreateInfo for debugging#1925

Merged
charles-lunarg merged 3 commits into
KhronosGroup:mainfrom
BoiledElectricity:log-app-info-1819
Jun 8, 2026
Merged

loader: Log VkInstanceCreateInfo for debugging#1925
charles-lunarg merged 3 commits into
KhronosGroup:mainfrom
BoiledElectricity:log-app-info-1819

Conversation

@BoiledElectricity

Copy link
Copy Markdown
Contributor

Closes #1819.

vkCreateInstance now logs the application's VkApplicationInfo (app and engine name/version, apiVersion) plus the requested instance layers and extensions at info level, so they show up under VK_LOADER_DEBUG. Useful for debugging instance setup and for matching driver workarounds to a specific app.

Example:

vkCreateInstance: applicationName: "MyApp", applicationVersion: 42, engineName: "MyEngine", engineVersion: 7, apiVersion: 1.2.0
vkCreateInstance: Requested 1 instance layer(s):
   VK_LAYER_KHRONOS_validation
vkCreateInstance: Requested 1 instance extension(s):
   VK_EXT_debug_utils

Added a regression test covering the dump.

@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

vkCreateInstance now logs the application's VkApplicationInfo (app and engine
name and version, apiVersion) plus the requested instance layers and
extensions at info level, so they show up under VK_LOADER_DEBUG. This helps
when debugging instance setup and when matching driver workarounds to a
specific application.

Closes KhronosGroup#1819
@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

Comment thread loader/trampoline.c Outdated
Comment thread loader/trampoline.c Outdated
@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author BoiledElectricity not on autobuild list. Waiting for curator authorization before starting CI build.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 763462.

@charles-lunarg

Copy link
Copy Markdown
Collaborator

Turns out the tests were segfaulting because the VkApplicationInfo struct was uninitialized. I went ahead and fixed it because that isn't your mistake :) Plus I made a commit with the changes I suggested, so now its good to approve.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3529 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3529 passed.

@charles-lunarg charles-lunarg merged commit 18c25b6 into KhronosGroup:main Jun 8, 2026
46 checks passed
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.

Log VkApplicationInfo to console

3 participants