Skip to content

vulkaninfo: Make vulkan entry point variables static - #1234

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
RasterGrid:rastergrid/vulkaninfo-static-entry-points
Jul 15, 2026
Merged

vulkaninfo: Make vulkan entry point variables static#1234
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
RasterGrid:rastergrid/vulkaninfo-static-entry-points

Conversation

@hapakj

@hapakj hapakj commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Make vulkan entry point variables static in vulkaninfo.

Prevent link issues in case vulkan info directly linked to a library which exports the related vulkan entry points. e.g. a vulkan loader or and icd.

@ci-tester-lunarg

Copy link
Copy Markdown

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

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

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

@charles-lunarg charles-lunarg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the purpose of these changes.

Vulkaninfo is an application that links vulkan-1.dll/libvulkan.so and indirectly loads vulkan drivers. Why would the loader or a driver link to vulkaninfo? If you were doing that, there would need to be significantly more changes.

Is this PR the result of a dynamic linker warning about duplicate symbols?

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Tools build queued with queue ID 35238.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Tools build # 1999 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Tools build queued with queue ID 35259.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Tools build # 2000 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Tools build # 2000 passed.

@aqnuep

aqnuep commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

I don't understand the purpose of these changes.

Vulkaninfo is an application that links vulkan-1.dll/libvulkan.so and indirectly loads vulkan drivers. Why would the loader or a driver link to vulkaninfo? If you were doing that, there would need to be significantly more changes.

Is this PR the result of a dynamic linker warning about duplicate symbols?

@hapakj is on vacation. But the particular example is that some Vulkan SC drivers, for example statically link into the application, and the exported symbols conflict with the driver's symbols.

Although this can also happen with a dynamic linker due to the symbol conflicts.

@charles-lunarg charles-lunarg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see the reason now. I should have suspected that what doesn't make sense for vulkaninfo does for vulkaninfoSC.

As there isn't any drawback to adding static here, it is an easy approval.

@charles-lunarg
charles-lunarg merged commit 2a863f5 into KhronosGroup:main Jul 15, 2026
26 of 27 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.

4 participants